[R] install R redhat rpm as a normal user

Marc Schwartz MSchwartz at MedAnalytics.com
Thu Mar 10 16:21:17 CET 2005


On Wed, 2005-03-09 at 16:17 -0800, Eric Hu wrote:
> Hi, I wonder if anyone has done this before. I have rpm-build
> installed in my workstation. Thanks.
> 
> Eric


I have not seen any other replies to this, but as far as I know Martyn's
RPMS are not relocatable and a test this morning confirms that.

If you need to install R as a non-root user, you are likely better off
installing from source code. Modify the "--prefix" argument
to ./configure as per the R Administration Manual. For example:

  ./configure --prefix="TargetDir"

where TargetDir is a directory that you have write privileges to.

Then use "make" and "make install" which will then build and install R.

R will be installed in TargetDir (ie. "/home/UserName/R") with a set of
subdirs bin, lib and man. To run R, you would then use:

  TargetDir/bin/R

Or you can create a symlink in /home/UserName/bin to the above file and
then just use "R" to start it.

See the R Administration Manual for more information.

HTH,

Marc Schwartz




More information about the R-help mailing list