I have an alternative method based on the recommendations from the bioc-devel mailing list. Assuming you want to install r-devel in your home directory, say in ~/R-devel/ , here is what you do:
First set up your environment variables so that we donβt need to repeat the directory names. Directory for sources and directory for compiled distribution. Of course, they can be anywhere, wherever you are:
export RSOURCES=~/src export RDEVEL=~/R-devel
Now get the sources + recommended packages:
mkdir -p $RSOURCES cd $RSOURCES svn co https://svn.r-project.org/R/trunk R-devel R-devel/tools/rsync-recommended
Then create R and packages:
mkdir -p $RDEVEL cd $RDEVEL $RSOURCES/R-devel/configure && make -j
What, everything is ready. Just save the following in a script executable somewhere to be able to run the development version:
#!/bin/bash export R_LIBS=~/R-devel/library R " $@ "
Here is a script that automatically saves the script in the ~ / bin / directory:
cat <<EOF>~/bin/Rdev; #!/bin/bash export R_LIBS=$RDEVEL/library export PATH="$RDEVEL/bin/:\$PATH" R "\ $@ " EOF chmod a+x ~/bin/Rdev
Now you can simply run Rdev as if you were running R , and you will have a development version of R that will install packages in $RDEVEL/library .
January
source share