[R-SIG-Mac] Installing Mac packages from a directory of .tgz files
Murray Jorgensen
maj at waikato.ac.nz
Sun Jan 16 04:57:41 CET 2011
Thanks, Brian.
I followed your modification of Berend's suggestion and everything
worked nicely! Now I have a seriously non-toy version of R on my Mac as
well as my PC.
The command line solution is perfect, but it occurs to me to ask if I
could have done this via the Packages & Data Gui if only I had been able
to understand it?
Murray
On 16/01/2011 4:50 a.m., Prof Brian Ripley wrote:
> 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
>>
>
--
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