The emmeans package in R is a replacement for lsmeans. This is the start of a self-instruct/destruct bare bones essentials line on how to use emmeans.
https://stackoverflow.com/questions/31707941/how-do-i-change-the-default-library-path-for-r-packages