[R-SIG-Mac] R packages on Mac

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 23 11:44:16 CET 2013


On 23/01/13 10:27, Ross Tinsley wrote:
> Originally posted this on the standard mailing list and it was suggested that I post here on SIG Mac list. Have also included Beren's response who emphasised using the R.app GUI, however I am doing this as my first step. The below error message turns up there as well. Am stuck on the 'make' command and how to make that work.

You are apparently trying to install source packages, which is not the 
default on a CRAN build of R.  See Berend's reply.

See the 'R Installation and Administration Manual'.   Unfortunately you 
have not AFAICS told us your exact OS, but for Lion or Mountain Lion you 
need to install Xcode _and its command-line tools_ from the App Store.  See

http://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-R-under-_0028Mac_0029-OS-X

and its footnotes.

And yes, this is in the Mac FAQ, e.g. at 
http://r.research.att.com/man/RMacOSX-FAQ.html#Quick-start

> Here are the commands in R I am trying to run.
>
> library(Amelia)
> library(Hmisc)
> library(polycor)
> library(psych)
> library(qgraph)
> library(lavaan)
> library(semTools)
> library(paran)
> library(nFactors)
> library(GPArotation)
> library(sem)
> library(polycor)
> library(rrcov)
>
> Thanks for any help.
>
>
> 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’
>
>
>
> Berend's response:
>
> 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
>
>
>
> 	[[alternative HTML version deleted]]
>
>
>
> _______________________________________________
> 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