rstudio / rsconnect

Publish Shiny Applications, RMarkdown Documents, Jupyter Notebooks, Plumber APIs, and more
http://rstudio.github.io/rsconnect/
131 stars 80 forks source link

How to convert `manifest.json` file to `packrat.lock` or `renv.lock` file #541

Closed elong0527 closed 1 year ago

elong0527 commented 2 years ago

In a CI/CD pipeline, we need to restore R packages from manifest.json using packrat.

I tried rsconnect:::addPackratSnapshot(".") but it seems not use manifest.json as source.

Could you guide a proper way to transfer manifest.json to packrat.lock or renv.lock file?

In addition, the renv:::renv_lockfile_from_manifest seems have bugs.

https://github.com/rstudio/renv/issues/832

hadley commented 1 year ago

I believe the manifest.json is primarily for our internal use, and not something we expect others to use.