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
Just tried get_pkgs_info on my book project and got an error for each package that renv::dependencies() discovered somewhere among the actual packages I use, even if they are just Depends: or maybe even Suggests: in a DESCRIPTION file.
I see no harm in making these warnings, and just omitting them from the result
> get_pkgs_info(out.dir = "bib")
A large number of files (1135 in total) have been discovered.
It may take renv a long time to crawl these files for dependencies.
Consider using .renvignore to ignore irrelevant files.
See `?renv::dependencies` for more information.
Set `options(renv.config.dependencies.limit = Inf)` to disable this warning.
Error in (function (pkg, lib.loc = NULL) :
there is no package called ‘ggformula’
The text was updated successfully, but these errors were encountered:
But I can see how that may be tedious if there are many packages to omit or remove. I'll try to set up a new argument that gives the user the choice to skip those packages just giving a warning, not error. Although there would then be a risk that some packages might not get their citation even if they have been used in the project.
On the other hand, AFAIK renv::dependencies will only include packages called directly (i.e. using library, require, etc) and not those packages' dependencies (like those in Imports or Suggests), unless you set dependencies = TRUE (default is FALSE). So as far as I understand ggformula is called directly somewhere (maybe here?) rather than being a dependency of some other package?
Just tried
get_pkgs_info
on my book project and got an error for each package thatrenv::dependencies()
discovered somewhere among the actual packages I use, even if they are justDepends:
or maybe evenSuggests:
in a DESCRIPTION file.I see no harm in making these warnings, and just omitting them from the result
The text was updated successfully, but these errors were encountered: