The lsmeans package is being deprecated. Users are encouraged to switch to emmeans (estimated marginal means), now available on CRAN. The lsmeans package will be archived on CRAN at some not-too-distant time in the future. Note that:
emmeans:::convert_scripts()
).emmeans:::convert_workspace()
.vignette("transition-from-lsmeans", "emmeans")
for more details.