Skip to content

Commit

Permalink
Merge pull request #2562 from posit-dev/docs-troubleshoot-renv
Browse files Browse the repository at this point in the history
Docs: Troubleshooting renv section
  • Loading branch information
marcosnav authored Jan 29, 2025
2 parents b67034c + 3f81f37 commit 0c29452
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@ introduced support for Gradio apps. Attempting to deploy a Gradio app to a
server running a version of Posit Connect older than 2024.12.0 will result in
this error.

## `renv` errors on deployment

When deploying `R` projects, it is essential that Posit Publisher has
access to a record of the dependencies used by your project to reproduce
the project on Posit Connect.
The [`renv` package](https://rstudio.github.io/renv/articles/renv.html) can
create that record as a `lockfile` (commonly named `renv.lock`).

If an R project doesn't have a `lockfile` on deploy, Posit Publisher prompts to
provide a solution to generate the expected `lockfile`.

![](https://cdn.posit.co/publisher/assets/img/publisher-renv-setup-notification.png)

Projects that already include a `lockfile` do not require `renv` be setup.

When uncommon errors occur that Posit Publisher cannot solve for you, it
prompts to evaluate the status of `renv` using
[`renv::status()`](https://rstudio.github.io/renv/reference/status.html).

## Still having trouble?

If you're still having trouble with Posit Publisher or have any questions,
Expand Down

0 comments on commit 0c29452

Please sign in to comment.