i wish to know how to set a folder in computer as a mirror from which i can
install packages
i am aware of the menu approach- "Packages>install from local zip files" but
i wish to know the command line approach because i dont have internet access
on the computer  where i will be using R.

i have put the zip files of packages in
C:\R\packages\bin\windows\contrib\2.11

i have put the following lines in Rprofile.site

 local({r <- getOption("repos")
       r["CRAN"] <- "file://C:/R/packages/"
       options(repos=r)})

but when i run install.packages("package_name_here"), i get the following
message:

Warning in gzfile(file, "r") :
  cannot open compressed file
'//C:/R/packages/bin/windows/contrib/2.11/PACKAGES', probable reason 'No
such file or directory'
Error in gzfile(file, "r") : cannot open the connection


Please help

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to