[BioC] oligo on R 2.4.1?
Seth Falcon
sfalcon at fhcrc.org
Fri Feb 9 16:20:44 CET 2007
Wolfgang Huber <huber at ebi.ac.uk> writes:
> As an alternative to editing PATH, I find it convenient to create a
> little file (shell script) in my $HOME/bin directory, of the name "R"
> and with contents like
>
> #!/bin/sh
> exec /home/huber/R-2.4.1/bin/R $*
>
> On many systems, $HOME/bin is already in the PATH. That way you can
> easily juggle between different versions of R, set environment variables
> like "LD_LIBRARY_PATH" locally just for this R (not interfering with
> other software), prepend "nice -n 19" etc.
I use this approach as well. Since I always have both the current R
release and a devel version of R around, I need to keep them
straight. So I have scripts ~/bin/R-2.4 and ~/bin/R-2.5 (and a
symlink called R for whichever I'm using most often).
When running multiple R's it is a good idea to keep your package
libraries separate. So I also have ~/RLIB/2.4 and ~/RLIB/2.5. My
script is then:
#!/bin/bash
export R_LIBS=/Users/seth/RLIB/2.5
/Users/seth/proj/builds/R-2.5/bin/R "$@"
So when I invoke R-2.5, I get the desired R_LIBS. The use of "$@" is
a subtle point, but as I understand it, it keeps the args intact so
the script you are calling does expansion, etc.
+ seth
More information about the Bioconductor
mailing list