I have a working project on Rstudio Server and I want to freeze all packages into the actual working versions to avoid future issues due to global library updates.
So I run
> packrat::init()
Initializing packrat project in directory: - "~/R/statistics"
After a while all packages are downloaded and installed with no apparent issue. So I run a command to get status:
packrat::status()
and I get:
Error: This project has not yet been packified. Run 'packrat::init()' to init packrat.
Restarted R session, Rstudio and even server, but to no avail. Same message no matter I insisted. Maybe this is not the correct procedure to add packrat to an existing project but packrat documentation is not very complete.
Rstudio Server version 1.1.456 R version : 3.4.4