I\'m developing my first R package (using R 2.13, Ubuntu 10.10). Let\'s call it foo and let\'s say that the code in the R/ directory begins with the line libra
I ended up just using a bash here-document and specifying the cloud mirror to find the dependencies:
sudo R --vanilla <
the R package is "forecast", the cloud mirror I used was http://cran.us.r-project.org. If you want to use a different mirror, here they all are: https://cran.r-project.org/mirrors.html
The above worked for me in getting R packages into an AWS EMR bootstrap shell script.