[R-SIG-Mac] Installing Mac packages from a directory of .tgz files
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Jan 15 16:50:35 CET 2011
On Sat, 15 Jan 2011, Murray Jorgensen wrote:
> 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?
I do, and told you one .... (hint: I used dir()).
>
> 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
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-SIG-Mac
mailing list