How to install dependencies when using “R CMD INSTALL” to install R packages?

后端 未结 6 697
心在旅途
心在旅途 2020-12-15 15:44

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

6条回答
  •  鱼传尺愫
    2020-12-15 16:31

    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.

提交回复
热议问题