[R] How to compile sources?

Duncan Murdoch murdoch at stats.uwo.ca
Wed Oct 17 13:24:50 CEST 2007


On 17/10/2007 6:31 AM, Sara Mouro wrote:
> Dear all,
> 
> 
> I have read the on-line explanations I have found about Building R  
> from sources, and istalling Packages from sources...
> Also, I have installed gcc4.0 and the gfrotran-4.2.1.dmg.
> 
> However, I still do not know how to use them to compile one Source  
> (in particular packfor_0.0-7.tar.gz) so that I can use it in R (for  
> MAC OS X).
> 
> Could someone please explain it to me in an easiest way (i.e. to  
> someone who has already "suffered" enough to learn R for herself, and  
> knows little about programming)?

The general idea is to open a console and run

R CMD INSTALL packfor_0.0-7.tar.gz

and if things are set up properly, all the compiling will be done for 
you.  On a Mac you can also do this from R.app, by choosing the right 
options (for a local source package) in the Install Packages dialog. 
(I'm not on a Mac right now so I can't give you the exact names).

If this doesn't work you'll need help with setup, and you should 
probably ask for that on R-sig-mac.

Duncan Murdoch



More information about the R-help mailing list