From the R Console prompt, run the following commands to install from CRAN and load.
install.packages('EnvStats')
library(EnvStats)
Download the source file: EnvStats_2.1.1.tar.gz
Install the file using the full file path
# change as needed
path_to_file <- 'C:/Users/mbeck/Desktop/EnvStats_2.1.1.tar.gz'
# install, load
install.packages(path_to_file, repos = NULL, type="source")
library(SWMPr)