[R] installing packages from a directory on the computer

From: Subramanian S <subbu_at_sssu.edu.in>
Date: Tue, 22 Jun 2010 11:09:33 +0530

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

i have put the following lines in Rprofile.site

 local({r <- getOption("repos")

       r["CRAN"] <- "file://C:/R/packages/"

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_at_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. Received on Tue 22 Jun 2010 - 05:42:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Jun 2010 - 07:30:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive