[Apologies for re-sending but I copied to the wrong list address.] Oh! Well, yes, I did mean .tgz, but I had vague thoughts that gunzip() might be the tool that I needed and I started thinking of the files as tar.gz. It helps to learn that they are not equivalent. Your unix/terminal way of installing the files looks much the preferable, but your description of the alternative helps me see how the mac is organised. Thanks again, Murray
Simon Urbanek wrote:
On Jan 18, 2010, at 15:34 , Murray Jorgensen wrote:
Hi Simon, my Mac or Unix skills are not that great so I need a few more clues with my problem. I read you as suggesting that my tar.gz
Stop here - are you talking about .tgz of .tar.gz? There is a huge difference! In the previous e-mail you talked about .tgz which are binaries, but .tar.gz are sources!
package files be uncompressed somehow and then placed somewhere and possibly somehow letting R know that this has been done. I think that I may need a little more help with the "somehow", "somewhere" and "possibly somehow".
In a very non-unix way (not recommended but it works for now): get the tgz files, double-click on them (I'm assuming you're in Finder) so they get unpacked (it's probably a good idea to do that on a clean desktop or a clean directory). Then open another Finder window an navigate to /Library/Frameworks/R.framework/Resource/library (you should see directories like base, codetool, datasets, ..) and drag the unpacked packages from the first window into this one. The unix way (recommended) - go to the directory containing the .tgz files (in Terminal) and type: R install.packages(list.files(,"tgz$"),repos=NULL) Cheers, Simon
Cheers, Murray Jorgensen Simon Urbanek wrote:
On Jan 13, 2010, at 6:17 , Murray Jorgensen wrote:
Thanks, Simon. But "Local Binary Package" seems to only accept a single package selection and I want the lot. This would seem to be very very slow to load this way.
Yes, because it's designed for something entirely different -- installing single development package from its sources (developers often do that for testing so they don't have to pack it up in the first place).
What I wish to do is to download the package files on one machine (actually an external drive connected to a PC) and then connect the drive to the Mac and install them from the drive.
Well, then why don't you simply unpack them all into your library? That's the fastest and simplest way ... Cheers, Simon
Simon Urbanek wrote:
On Jan 12, 2010, at 16:33 , Murray Jorgensen wrote:
Hi I have downloaded and installed R 2.10.1 to my Mac running OS X 10.5.8. Hardware Overview: Model Name: iMac Model Identifier: iMac7,1 Processor Name: Intel Core 2 Duo Processor Speed: 2.4 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 4 MB Memory: 1 GB Bus Speed: 800 MHz Boot ROM Version: IM71.007A.B03 SMC Version (system): 1.20f4 Serial Number (system): W87438YWX86 Hardware UUID: 00000000-0000-1000-8000-001B63AA8FF1 [In case this is relevant!] I have tgz files for all the packages [plus some other files] in /Applications/tgz10.1 . When I attempt to use the R Package Installer and select the tzg10.1 folder as the "Local Package Directory" the result that I get is
You are using the wrong menu item - that menu is for installing *package directories* i.e. packages in unpacked form. For .tgz files you want to use "Local binary package". But, please, note that installing packages that way is only for very, very special cases - normally you should use "CRAN (binaries)" instead because that takes care of dependencies, downloading, installation etc. Cheers, Simon
-- 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
-- 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 Fax 7 838 4155 Phone +64 7 838 4773 wk Home +64 7 825 0441 Mobile 021 0200 8350
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 Fax 7 838 4155 Phone +64 7 838 4773 wk Home +64 7 825 0441 Mobile 021 0200 8350