Installing R in the cluster :)
I managed to install R packages inside the cluster in the local folder.
shell script to run the R install file :
I managed to install R packages inside the cluster in the local folder.
shell script to run the R install file :
packs=c("zoo","snow","caTools")
for(i in 1:length(packs)){
install.packages(packs[i],lib="/mnt/home/sinha/Rpackages",dependencies=TRUE,repos='http://cran.us.r-project.org')
}
Then change the bashrc file by adding the following lines
if [ -n $R_LIBS ]; then
export R_LIBS=/mnt/home/sinha/Rpackages:$R_LIBS
else
export R_LIBS=/mnt/home/sinha/Rpackages
fi
Similar install perl packages using cpanm and change the bashrc file by adding the following lines
eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
export MANPATH=$HOME/perl5/man:$MANPATH