[R] installing packages from a directory on the computer

From: Subramanian S <subbu_at_sssu.edu.in>
Date: Tue, 22 Jun 2010 15:18:34 +0530

Peter, i tried the file.choose() method of installing from local zip files; its easy to install few packages that way. but you see if there are many packages(say >10 or 12), then i wont be able to install the packages on which the packages that i want to install depend because i guess i cant set dependencies=TRUE by this method.

here is what i tried
i replaced "http://my.local.cran" (code below) in Rprofile.site with "file://C:/R/packages/" and then did

install.packages(c("pkg1", "pkg2", ...),dependencies=TRUE) in R console but dint succeed..

# set a CRAN mirror
 local({r <- getOption("repos")

      r["CRAN"] <- "http://my.local.cran/"
       options(repos=r)})

Would Appreciate 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 - 09:52:23 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 Wed 23 Jun 2010 - 07:10: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