11/9/2023 0 Comments Packrat salina ksgetPackageDependencies -> 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")' 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/ Sign up for the Salina Post Noon News Update Posted Sep 11, 2023. The new Dockerfile and error given below. ![]() However, I still get error while generating the image. I changed the Dockerfile as per the steps given in the link you shared. # 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/ packrat::clean (): Remove unused packages from your library. packrat::restore (): Restore the library state saved in the most recent snapshot. Mkdir -p /var/lib/shiny-server/bookmarks/shiny The Saline County GIS Department creates and maintains spatial data and applications for county departments, governmental agencies, and private citizens. When you want to manage the state of your private library, you can use the Packrat functions: packrat::snapshot (): Save the current state of your library. 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 |