[R] contriburl argument to install.packages

John Fox jfox at mcmaster.ca
Thu Jul 15 17:02:27 CEST 2004


Dear Roger, 

> -----Original Message-----
> From: Roger D. Peng [mailto:rpeng at jhsph.edu] 
> Sent: Thursday, July 15, 2004 9:30 AM
> To: John Fox
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] contriburl argument to install.packages
> 
> Would this work for you?
> 
> install.packages(pathtopackagezipfile, CRAN = NULL)
> 

This doesn't work for me since it requires that one to include the version
part of the file name.

Thanks,
 John

> Although, you can only do one at a time, I think.
> 
> -roger
> 
> John Fox wrote:
> > Dear list members,
> > 
> > I can't figure out how to specify the contriburl argument to
> > install.packages() properly when the packages to be 
> installed are in a 
> > directory on my local machine. I have in mind a command 
> something like
> > 
> > 	install.packages(missing.packages, contriburl=directory,
> > lib=.libPaths()[1])
> > 
> > Where missing.packages is a character vector of package 
> names (without
> > versions) and directory is the location where they reside (less 
> > PACKAGES, I guess). I'm using R version 1.9.1 on a Windows 
> XP machine. 
> > Several variations on directory <- "file:c:/temp" don't 
> seem to work.
> > 
> > Any help would be appreciated.
> > 
> > John
> > 
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! 
> > http://www.R-project.org/posting-guide.html
> >




More information about the R-help mailing list