简体   繁体   中英

Installing old packages on RStudio-hosted Shiny Server

I am trying to install several packages on the RStudio-hosted Shiny Server, but these packages run with at least R version 3.0.0. A possible solution that I found on the Internet:

download.file('http://cran.rstudio.com/src/contrib/Archive/devtools/devtools_1.1.tar.gz', destfile='devtools_1.1.tar.gz')

install.packages('devtools_1.1.tar.gz', type='source', repos=NULL)

unlink('devtools_1.1.tar.gz')

does not work and I get the following error:

Warning in install.packages : package 'devtools_1.1.tar.gz' is not available (for R version 2.15.3)

How could I modify this code in such a way that I am able to install the devtools package?

Thank you in advance!

恐怕快速解决方案将涉及调查所需软件包的详细信息,但是作为更大问题的解决方案,请签出Packrat ,它可以用于在部署之前将R软件包(任何版本)捆绑在您的应用程序中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM