[R-SIG-Mac] Installing Mac packages from a directory of .tgz files
Murray Jorgensen
maj at waikato.ac.nz
Sat Jan 15 11:11:12 CET 2011
On 15/01/2011 9:35 p.m., Berend Hasselman wrote:
>
...
> install.packages(pkgs=c("foreach_1.3.0.tgz"),lib=.libPaths()[2],repos=NULL)
>
> Repeat for other packages ( you can also set pkgs=c("pkg1.tgz", "pkg2.tgz",...) )
>
> good luck
>
> Berend
>
OK, thanks Berend! - I think that worked for the first package. Now I
need to form a pkgs character vector with the names of the other 2646
packages. One way I thought of was to open a terminal window in the
package folder, do an ls, then edit in all the commas and quotes.
Perhaps you know an easier way?
Murray
--
Dr Murray Jorgensen http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at waikato.ac.nz majorgensen at ihug.co.nz Fax 7 838 4155
Phone +64 7 838 4773 wk Home +64 7 825 0441 Mobile 021 0200 8350
More information about the R-SIG-Mac
mailing list