Re: [R] Which package to install?

From: <>
Date: Tue, 19 Feb 2008 16:01:22 +0000


well if there is no binary it seems you have to recompile from source...
>From the R FAQ:

2.5.1 How can R be installed (Unix)

If R is already installed, it can be started by typing R at the shell prompt (of course, provided that the executable is in your path).

If binaries are available for your platform (see Are there Unix binaries for R?<>), you can use these, following the instructions that come with them.

Otherwise, you can compile and install R yourself, which can be done very easily under a number of common Unix platforms (see What machines does R run on?<>). The file INSTALL that comes with the R distribution contains a brief introduction, and the "R Installation and Administration" guide (see What documentation exists for
R?<>) has full details.

Note that you need a FORTRAN compiler or perhaps f2c in addition to a C compiler to build R. Also, you need Perl version 5 to build the R object documentations. (If this is not available on your system, you can obtain a PDF version of the object reference manual via CRAN.)

In the simplest case, untar the R source code, change to the directory thus created, and issue the following commands (at the shell prompt):

     $ ./configure
     $ make

If these commands execute successfully, the R binary and a shell script front-end called R are created and copied to the bin directory. You can copy the script to a place where users can invoke it, for example to /usr/local/bin. In addition, plain text help pages as well as HTML and LaTeX versions of the documentation are built.

Use make dvi to create DVI versions of the R manuals, such as refman.dvi (an R object reference index) and R-exts.dvi, the "R Extension Writers Guide", in the doc/manual subdirectory. These files can be previewed and printed using standard programs such as xdvi and dvips. You can also use make pdf to build PDF (Portable Document Format) version of the manuals, and view these using e.g. Acrobat. Manuals written in the GNU Texinfo system can also be converted to info files suitable for reading online with Emacs or stand-alone GNU Info; use make info to create these versions (note that this requires Makeinfo version 4.5).

Finally, use make check to find out whether your R system works correctly.

You can also perform a "system-wide" installation using make install. By default, this will install to the following directories:

${prefix}/binthe front-end shell script
${prefix}/man/man1the man page
${prefix}/lib/Rall the rest (libraries, on-line help system, ...). This is
the "R Home Directory" (R_HOME) of the installed system.

In the above, prefix is determined during configuration (typically /usr/local) and can be set by running configure with the option

     $ ./configure --prefix=/where/you/want/R/to/go

(E.g., the R executable will then be installed into /where/you/want/R/to/go/bin.)

To install DVI, info and PDF versions of the manuals, use make install-dvi, make
install-info and make install-pdf, respectively.

On 19/02/2008, <> wrote:
> Hi,
> I'm wanting to install R onto my webspace. My ISP uses CentOS release 4.6
> and I'd like to know which one of the available R packages for Linux would
> be appropriate.
> Thanks.
> ______________________________________________
> mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.

-- Yianni

	[[alternative HTML version deleted]]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 19 Feb 2008 - 16:03:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Feb 2008 - 16:30:15 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive