Closed dotNomad closed 1 week ago
Could be part of a pre-check on deployment alongside #2018
We can start out by - if we detect this situation - we should say something to the user.
We can explain that we are using the version from therenv.lock
.
We can run through the use case in VS Code and Positron, and see what their extensions are giving us for R.
We can do the immediate fix to say something to the user, and create a follow-up for a more long term, helpful solution.
Closing this one up. We can rely on renv
errors being bubbled up to the user in #2408 to handle this case. If we need to do something more we can open a new issue.
It can be confusing when there's an
renv.lock
file containing an R version that doesn't match what you are running. When you inspect a project, the generated config always uses the version fromrenv.lock
if possible, otherwise it runs R to determine the version.We need to evaluate the workflow steps in this case, both in R (e.g. running
renv::restore
) and in Publisher to be sure the use cases make sense.