[R] Problem installing packages

Ott Toomet siim at obs.ee
Thu May 30 10:31:02 CEST 2002


Hi,

On Wed, 29 May 2002, [ISO-8859-1] Fredy Mejía wrote:

  |Dear R-experts,
  |
  |	I'm a new R user and so far have no complains about ir.  However I 
  |still can't figure out how to install packages.  I'm running the R 1.5.0 
  |(Carbon) under OS X.  I just downloaded some packages from CRAN (Tree, 
  |among them) and moved them to the library folder in R.  When the R session 
  |started, I was expecting that using the command library(tree) would do it,
  |  but the program replied the following message:
  |
  | > library(tree)
  |Warning message:
  |Package  `Tree' contains no R code in: library(Tree)

Try to read FAQ on CRAN.  It is explained there as well as in V&R 'S
Programming'.

It is not enough to copy the library file.  You have to install it.  On
linux, you simply type (on OS prompt),

$ R CMD INSTALL /path/to/pkg_version.tar.gz

I think, it is similar in OS X.  Basically, it compiles the package for you. 
There are also pre-compiled recommended packages for OS X on CRAN.


Best,

Ott











-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list