...
sbatch -p batch -c 8 --mem=10000 --time=10:00:00 --output=RT_SET_1.R.out --error=RT_SET_1.R.err --mail-type=ALL --mail-user=dlapoi01 --wrap='R --no-save < RT_SET_1.R'
sbatch -p batch -c 8 --mem=10000 --time=10:00:00 --output=RT_SET_2.R.out --error=RT_SET_2.R.err --mail-type=ALL --mail-user=dlapoi01 --wrap='R --no-save < RT_SET_2.R'
sbatch -p batch -c 8 --mem=10000 --time=10:00:00 --output=RT_SET_3.R.out --error=RT_SET_3.R.err --mail-type=ALL --mail-user=dlapoi01 --wrap='R --no-save < RT_SET_3.R'
sbatch -p batch -c 8 --mem=10000 --time=10:00:00 --output=RT_SET_4.R.out --error=RT_SET_4.R.err --mail-type=ALL --mail-user=dlapoi01 --wrap='R --no-save < RT_SET_4.R'
Q. How do I install python modules locally?
A. First, load the module for the python version ( e.g. 2.7) that you intend to use. That way the system managed module are loaded.
module load python/2.7.6
Then create a local directory tree to store the modules ( ~/lib/python2.7/site-packages). Append a modified PYTHONPATH to your .bash_profile and source it. This is only need for the first time that this is done.
echo export PYTHONPATH="$PYTHONPATH:~/lib/python2.7/site-packages/" >> ~/.bash_profile
source ~/.bash_profile
Now you can use pip or setup.py to load python modules locally.
pip install --user <PACKAGE>
If there is a requirements file
pip install --user -r requirements.txt
or after a python package is dowloaded and unpacked. Be sure to read the instructions for installing.
python setup.py install