Hello ... I see that on Windows one can specify a filename as the "pkgs" argument and then set CRAN=NULL when calling install.packages() for a local file. Is there a way to do this on unix? It doesn't appear to be possible, but perhaps I am missing something here. Also, if indeed there is no method to do this on unix, is there a reason behind it or has it just never been implemented?
There is a method to install a package from a local file. From the unix command line, use R INSTALL possibly using R CMD build first. See Writing R Extensions at CRAN for more information. Or R --help at the unix command line. I haven't looked for a way using install.packages(). -Don At 3:09 PM -0500 11/13/03, Jeff Gentry wrote:>Hello ... > >I see that on Windows one can specify a filename as the "pkgs" argument >and then set CRAN=NULL when calling install.packages() for a local >file. Is there a way to do this on unix? It doesn't appear to be >possible, but perhaps I am missing something here. > >Also, if indeed there is no method to do this on unix, is there a reason >behind it or has it just never been implemented? > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA
Jeff Gentry <jgentry at jimmy.harvard.edu> writes:> Hello ... > > I see that on Windows one can specify a filename as the "pkgs" argument > and then set CRAN=NULL when calling install.packages() for a local > file. Is there a way to do this on unix? It doesn't appear to be > possible, but perhaps I am missing something here. > > Also, if indeed there is no method to do this on unix, is there a reason > behind it or has it just never been implemented?Unix doesn't (generally) have binary packages, so has to be different. I suppose the theory is that you might as well just run "R CMD INSTALL" on the file. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907