[R] Installing add on packages

Douglas Bates bates at stat.wisc.edu
Thu Jun 1 00:27:35 CEST 2000


gb <gb at stat.umu.se> writes:

> On Wed, 31 May 2000, Robert Schick wrote:
> 
> > Hi- I'm a complete newbie trying to install R and the 'tree' package on a
> > linux box. I installed R successfully using an RPM for Redhat 6.2. I
> > downloaded the tree*.gz file, ran tar, the fired up R. When I'm at the
> > >prompt in R, and type 'R INSTALL /usr/apps/tree' I get: 'Error: Syntax
> > error' I want tree to end up in the default directory so I did not specify
> > any different paths. Is my syntax wrong?  Thanks.
> 
> Correct syntax, wrong place: Try it at the shell prompt, eventually
> as root.

Goran is correct that you need to run R INSTALL at the shell prompt.
If you want to install the library in a private collection you can add
the -l flag to specify the location of the library.  You should then
establish an environment variable R_LIBS as a colon-separated list of
directories in which to look for libraries.

The call to R INSTALL would look like

R INSTALL /usr/apps/tree -l ~/.Rlibs

or something like that.

Note that with recent versions of R you do not need to expand the tar
file.  You can give the name of the tar file to the INSTALL command.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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