On Aug 25, 2009, at 12:31 PM, pleyd...@supagro.inra.fr wrote:

"R Installation and Administration", section 2.5 "Sub-architectures" describes calling specific builds of R using the call "R --arch=name". I am trying to build and install three versions of R-2.9.1, each configured with a different valgrind-instrumentation level ("Writing R Extensions", section 4.3.2 "Using valgrind"). My goal is to be able to choose which install I launch so that I
can
choose among the valgrind levels with commands such as

R --arch=valgrind0 -d valgrind --vanilla < myPkg.R
or
R --arch=valgrind1 -d valgrind --vanilla < myPkg.R
or
R --arch=valgrind2 -d valgrind --vanilla < myPkg.R

R-2.9.1.tar.gz is unzipped to /usr/local/src/R-2.9.1 and I have tried executing
(several variations of) the following code from that directory

sudo ./configure --enable-memory-profiling --with-valgrind- instrumentation=2
r_arch=vg2 --with-recommended-packages=no
sudo make
sudo make install rhome=/usr/local/lib/R-2.9.1_vg2
sudo ./configure --enable-memory-profiling --with-valgrind- instrumentation=1
r_arch=vg1 --with-recommended-packages=no
sudo make
sudo make install rhome=/usr/local/lib/R-2.9.1_vg1
sudo ./configure --enable-memory-profiling --with-valgrind- instrumentation=0
r_arch=vg0 --with-recommended-packages=no
sudo make
sudo make install rhome=/usr/local/lib/R-2.9.1_vg0

using this approach the second "sudo make" results in error.


You're confusing rhome and arch - the above makes no sense. Let rhome alone and you should be fine. (And make sure you're not building in the source tree - you should be using something like mkdir obj_vg0 && cd obj_vg0 && ../R-2.9.1/configure ...)

Cheers,
Simon


I also tried installing from three seperate copies of the R-2.9.1 directory i.e.
from

/usr/local/src/R-2.9.1_valgrind0
/usr/local/src/R-2.9.1_valgrind1
/usr/local/src/R-2.9.1_valgrind2

with this set up the above code runs without error and the shell command "R --arch=valgrind0" works (level zero being the level used in the most recent install) but the shell commands "R --arch=valgrind1" and "R -- arch=valgrind2"
result in error messages.

I can't figure out how to get this working, although it seems perfectly natural to want to do this. It would be great if someone could point me in the right direction and perhaps a workable example could be added to the "R Installation
and Administration" document too.

I am running a recent install of Ubuntu (Jaunty) on a 32 bit laptop with all
previous R installations removed / uninstalled.

thanks
David

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel



______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to