Re: [R] installing packages from a directory on the computer

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Tue, 22 Jun 2010 09:38:49 -0400

On Jun 22, 2010, at 5:48 AM, Subramanian S wrote:

> 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..

What were the error messages?

(I would have guessed that you needed to specify that the packages should be installed from "source", since I think that the default might be "win.binary". The error messages should have been informative. Always include full error messages as the Posting Guide clearly states.)

>
> # 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.

David Winsemius, MD
West Hartford, CT



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 - 13:41:39 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 - 18:00: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