Re: [R] Problems with Rscript executable.

From: Dirk Eddelbuettel <>
Date: Mon, 28 Apr 2008 12:21:34 -0500


On 28 April 2008 at 10:42, Gregg Phillips wrote:
| Good Morning,
| I have recently built R version 2.7.0 on a CentOS release 4.6, 64-bit
| system using the following command:
| ./configure --prefix=/usr/local/r-2.7.0
| Everything built fine and works properly except for Rscript which is
| looking for files in the original build directory instead of the
| specified install directory. Did I forget to add a flag or is this a bug?

I think it's a bug, or 'some unnecessary fragility' in the build system.

A user noticed the same in one of the beta/rc pre-releases I made of R 2.7.0 for the Debian distro. I immediately reported this to Prof Ripley, but I never received a reply.

A few easy-ish ways to fix it are:

i) Define the environment variable RHOME and point to /usr/local/r-2.7.0;

     if the variable exists Rscript will ignore the compile-time setting.

ii) Similarly, just alter the code and override rhome in line 67:

             static char rhome[] = R_HOME;

iii) Correct the fragility in the build system by something like

	$ cd src/unix; R_HOME="/usr/local/r-2.7.0" make Rscript
     which should work.

iv)  Just switch to littler :-)  
     [ ]

Hoep this helps, Dirk

Three out of two people have difficulties with fractions.

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 28 Apr 2008 - 17:57:12 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 Mon 28 Apr 2008 - 18:30:32 GMT.

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

list of date sections of archive