Skip to content

Install R package on mac

6 messages · Kjell Konis, Sundar Dorai-Raj, julien cuisinier +2 more

#
I think installing a Windows binary package on Mac (or any other  
operating system) is probably not officially supported - so the  
package manager is not going to be too helpful here. In this case  
you're lucky though - WiSP does not contain any native code.  All you  
need to do is unpack the wisp_1.2.6.zip archive (which OS X is  
apparently doing for you already) and put the wisp folder in your R  
library using the Finder. Worked for me anyway. Also, you should  
probably email the package authors and ask them to provide a source  
version of the package as well.

HTH,
Kjell
On 10 mars 09, at 14:57, Philippe Bouchet wrote:

            
#
Worked for me as well. To find your library directory, just open R and
type ".libPaths()". For me, it's
[1] "/Library/Frameworks/R.framework/Resources/library"

As Kjell noted, I just unzipped the binary in the latter directory.
Then library(wisp) worked just fine.

HTH,

--sudar
On Tue, Mar 10, 2009 at 7:13 AM, Kjell Konis <kjell.konis at epfl.ch> wrote:
#
Hi,

Thanks so much for your advice, everything is working now !

Cheers,

Phil
On Mar 10, 2009, at 3:13 PM, Kjell Konis wrote:

            
#
Hi!

The wisp package doesn?t contain source code that has to be complied
for a specific platform. There is no src directory in the package.
It just consist of native R code. Installation in this case is  
straight forward.

Unzip the file on the desktop and invoke the following line in terminal:

R CMD INSTALL ~/Desktop/wisp/ -l ~/Library/R/2.8/library

the -l flag specifies your user library. Note, installing in a user
directory is the recommend way. Otherwise the package is installed
into /Library/Frameworks/R.framework/Resources/library, the default
library path.

Roland