I am using the packrat
package for my project the first time, and I want to use a Makefile to run specific scripts in a specific order for different targets. However. I organized my file like this:
main_dir/packrat/
main_dir/subproject1/R_scripts_1/Makefile
When I run R CMD BATCH someRfile.R
from within the Makefile, R is not using the packrat libs, but the default user libs, which is not what I want.
Is there any way to force all R processes startet in any subdir of the packrat dir, to use only the packrat libs?!
Thank you!