You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see that the function finds the testServer package
Expected result
The doc states the following :
Explicit dependencies
Alternatively, you can suppress dependency discover and instead rely on an explicit set of packages recorded by you in a project DESCRIPTION file. Call renv::settings$snapshot.type("explicit") to enable "explicit" mode, then enumerate your dependencies in a project DESCRIPTION file.
Sorry, the documentation here is misleading. "explicit" mode only changes how renv::snapshot() enumerates dependencies, it does not change the behavior of renv::dependencies() itself, which always infers dependencies based on static analysis of files within the project.
Description of the bug
If I git clone the following package: https://github.com/ThinkR-open/MockShinySessionInTest
Then do
You can see that the function finds the
testServer
packageExpected result
The doc states the following :
https://rstudio.github.io/renv/reference/dependencies.html#explicit-dependencies
Given that
testServer
is not in theDESCRIPTION
file (see here), I would have expected it to be left out of the results.Even more, I would have expected
{renv}
to not look into the R, Readme.Rmd, etc...Am I missing something?
The text was updated successfully, but these errors were encountered: