install R package from source
If you have the file locally, then use install.packages()
and set the repos=NULL
:
install.packages(path_to_file, repos = NULL, type="source")
R CMD INSTALL RJSONIO_0.2-3.tar.gz
install.packages("https://cran.r-project.org/src/contrib/Archive/glmnet/glmnet_2.0-3.tar.gz",repos=NULL)