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
{{ message }}
Repository navigation
dock_from_desc(): the package's own SystemRequirements are now mapped by pak (since #123) #128
Since #123, dock_from_desc(sysreqs = TRUE) computes system requirements with pak::pkg_sysreqs("local::<dir>", dependencies = TRUE). The package itself is now part of pak's resolution, so its own SystemRequirements field is mapped to Debian packages too: in pkgdepends, a local:: package is resolved by resolve_from_description(), which keeps SystemRequirements (R/resolution.R), and sysreqs_install_plan() maps the sysreqs of every package of the solution, the root one included (R/sysreqs.R).
Before #123, only the dependencies were passed to pak, and the package's own SystemRequirements were never mapped. This was checked by reading the pkgdepends sources, not by running it.
Consequences
NEWS for 1.0.1 does not mention it.
dock_from_desc() still prints, whenever the DESCRIPTION has SystemRequirements and extra_sysreqs is empty:
The DESCRIPTION file contains the following SystemRequirements: ...
Please check the created Dockerfile.
You might needed to add extra sysreqs.
With sysreqs = TRUE this is now partly redundant: the entries pak recognises are already in the apt-get install line. It stays useful for entries pak does not recognise (free text) and with sysreqs = FALSE.
No test covers the mapping of the package's own SystemRequirements.
Possible fixes
Add a NEWS entry under 1.0.1 (1.0.0 is the current CRAN version).
Reword the message for sysreqs = TRUE, e.g. "checked against pak's database; entries it does not recognise are not installed", and keep the current one for sysreqs = FALSE. ("You might needed" should also read "You might need".)
Add a network test (skip on CRAN / offline): a DESCRIPTION with SystemRequirements: libxml2 and no dependency should give libxml2-dev in the apt-get install line.
Activity