...
A. If you want to load a package locally, R provides a simple way to do that. Make sure that you have enough room in your home directory to hold the package software. This simple method is good if you don't plan on loading a large number of packages or do not want need versioning within a subrelease ( R/3.2.2 vs R/3.2.5).
If you don't have a directory named R in your home directory, this method will create one and place libraries in it down a long path. This is not a problem since R will use this path not you.
...
R will inform you that you can't write to the global directory, and ask if you want to use a personal library. Say yes. It will then give you a long path based off /home/username/R/long-arch-string/version and ask if you want to use this. Say yes. It will install the library and you're done!
If you do plan to load a large number of packages, or packages which require larger amounts of storage, you can use research storage on the cluster if you have space there ( request storage if you need it). Create a directory in your research storage, e.g. R-local , then link it from your home directory like this:
ln -s /cluster/tufts/<yoursharename>/R-local ~/R
If you have already loaded R packages in your home directory, Create a directory in your research storage, e.g. R-local , then copy the directory tree to R-local.
rsync -av ~/R/ /cluster/tufts/<yoursharename>/R-local # make sure there is a / after the source directory
rm -rf ~/R # remove the directory and contents careful!
ln -s /cluster/tufts/<yoursharename>/R-local ~/R
Q. How do I install python modules locally?
...
or after a python package is dowloaded and unpacked. Be sure to read the instructions for installing.
python setup.py install --prefix=~