Skip to content
Prev 8210 / 15076 Next

Compiling Source packages in Mac OS 10.5.8

On 11-07-18 11:02 AM, Oscar A. Moreno wrote:
Put the .tar.gz file anywhere where R can see it and read it.  For 
example, after starting R.app if you run getwd() you'll probably see 
something like

/Users/<yourname>

Putting the tar.gz in that directory is simplest.  Then

install.packages("<path to the .tar.gz>", type="source", repos=NULL)

will attempt to install it.

If it's a simple package, that should just work; if it has compiled C or 
Fortran code, you may need to install some compilers to get it to work. 
  See the links from http://cran.r-project.org/bin/macosx/ for how to 
get those for your particular version of OS X.

Duncan Murdoch