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

后端 未结 6 681
心在旅途
心在旅途 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:23

    Similar to @Jonathan Le, but better for script usage :

    sudo R --vanilla -e 'install.packages("forecast", repos="http://cran.us.r-project.org")'
    

提交回复
热议问题