[R] Introduction and help request

Berend Hasselman bhh at xs4all.nl
Tue Jan 22 21:41:56 CET 2013


On 22-01-2013, at 19:20, Ross Tinsley <rtinsley at htmi.ch> wrote:

> Hello all
> 
> I am a researcher in the field of tourism and have just recently installed R64 and RStudio onto my Mac (running latest OS). I am ran into some problems installing additional packages. I have looked through the General FAQs and Mac FAQS but haven't been able to find a solution.
> 
> I have downloaded the various packages I need from CRAN sources and while some have successfully installed others have not. I have been following the instructions on the Mac FAQ to unzip and install the downloaded packages using the command line but the results seem to indicate an error (they are installed but then don't work properly and so are subsequently uninstalled). It happens on more than one so that's why I thought it might be something generic I am doing. Here is a copy of the command line results:
> 
> Rosss-MacBook-Pro:~ rosstinsley$ R CMD INSTALL /private/var/folders/ld/3f2dl80154z47_864skpt2_80000gn/T/Rtmp0ittcT/downloaded_packages/Hmisc_3.10-1.tar.gz 
> * installing to library ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’
> * installing *source* package ‘Hmisc’ ...
> ** package ‘Hmisc’ successfully unpacked and MD5 sums checked
> ** libs
> *** arch - i386
> sh: make: command not found
> ERROR: compilation failed for package ‘Hmisc’
> * removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/Hmisc’
> Rosss-MacBook-Pro:~ rosstinsley$ R CMD INSTALL /private/var/folders/ld/3f2dl80154z47_864skpt2_80000gn/T/Rtmp0ittcT/downloaded_packages/acepack_1.3-3.2.tar.gz 
> * installing to library ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’
> * installing *source* package ‘acepack’ ...
> ** package ‘acepack’ successfully unpacked and MD5 sums checked
> ** libs
> *** arch - i386
> sh: make: command not found
> ERROR: compilation failed for package ‘acepack’
> * removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/acepack’
> Rosss-MacBook-Pro:~ rosstinsley$ R CMD INSTALL /private/var/folders/ld/3f2dl80154z47_864skpt2_80000gn/T/Rtmp0ittcT/downloaded_packages/arm_1.6-01.02.tar.gz 
> * installing to library ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’
> ERROR: dependency ‘lme4’ is not available for package ‘arm’
> * removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/arm’
> Rosss-MacBook-Pro:~ rosstinsley$ R CMD INSTALL /private/var/folders/ld/3f2dl80154z47_864skpt2_80000gn/T/Rtmp0ittcT/downloaded_packages/chron_2.3-43.tar.gz 
> * installing to library ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’
> * installing *source* package ‘chron’ ...
> ** package ‘chron’ successfully unpacked and MD5 sums checked
> ** libs
> *** arch - i386
> sh: make: command not found
> ERROR: compilation failed for package ‘chron’
> * removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/chron’


1. This belongs on the R-SIG-Mac mailing list

2. Why don't you use the R.app GUI to install the binary versions of the required packages? Much easier.

3. The message:  "sh: make: command not found" means that you don't have make installed.
Most likely you don't have other required tools installed.
If you use the R.app GUI you don't really need tall those tools.

Advice: use R.app to install and if needed get the Xcode tools but only if you intend to compile your own packages.

Berend



More information about the R-help mailing list