I have a small shiny web application and through packrat package, I've bundled it. For this I've used two commands in this order :
"packrat::snapshot()"
" packrat::bundle(include.bundles = FALSE, omit.cran.src = TRUE)".
It has created a lock file in the packrat folder of my project and then bundled it.
Now after uploading this bundle on the docker, I'm coming across the following error:
"91mError: This project does not have a lockfile. (Have you called 'packrat::snapshot()' yet?)
Execution halted
0mThe command '/bin/sh -c su docker -c "R -e 'packrat::restore();'"' returned a non-zero code: 1".
I've checked the bundle and it has the lockfile inside it, still the error persist. Do anyone have an idea, why this might be happening? Does lockfile need to be in any specific position?