Skip to content

convert package not found errors to warnings #54

@friendly

Description

@friendly

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’

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions