getPackageDependencies -> readLockFilePackages -> readDcf -> read.dcfĬannot open compressed file '//packrat/packrat. # > packrat::on(project = "/srv/shiny-server/docker_test")Įrror in read.dcf(.) : cannot open the connectionĬalls. RUN R -e 'packrat::on(project = "/srv/shiny-server/docker_test")' RStudio Server Pro is now RStudio Workbench. RUN R -e 'packrat::unbundle("/srv/shiny-server/docker_", where = "/srv/shiny-server/")' # shiny server with specific r versionĬOPY packrat/bundles/docker_ /srv/shiny-server/ The new Dockerfile and error given below. However, I still get error while generating the image. This is the key magic that makes renv work: instead of having one library containing the packages used in. It adds three new files and directories to your project: The project library, renv/library, is a library that contains all packages currently used by your project 2. I changed the Dockerfile as per the steps given in the link you shared. To convert a project to use renv, call renv::init (). # make all app files readable (solves issue when dev in Windows, but building in Ubuntu) RUN R -e 'packrat::restore(project="/srv/shiny-server/shiny-wordcloud") ' RUN R -e "install.packages(c('packrat'), dependencies = TRUE, repos='')"ĬOPY packrat/packrat.* /srv/shiny-server/shiny-wordcloud/packrat/ Mkdir -p /var/lib/shiny-server/bookmarks/shiny Can any tell possible issue in the Dockerfile ? # shiny server with specific r versionĪpt-get install libcurl4-openssl-dev libv8-3.14-dev libssl-dev libxml2-dev libxslt-dev -y &\ I suspect it might due to incorrect installation path. However, when i run the docker image, it throws an error that package not found as soon as it hit the first library call. It executes all steps without error and creates image successfully. I explicitly use packrat to make sure that package version remain same. Hi, I use below Dockerfile to create the docker image for word-cloud shiny app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |