mod cran¶
- module cran¶
Offline CRAN DESCRIPTION / package-list adapter.
Default tests never fetch the CRAN PACKAGES index. The parser accepts:
a DESCRIPTION file (
Package:,Version:,Depends:,Imports:);a JSON object with the same fields;
a package list (
jsonlite==1.8.8, one spec per line).
Base-R packages are dropped. R (>= x) becomes a dependency on EasyBuild
Rwith the version constraint preserved.Functions
- fn parse_cran_str(text: &str) -> Result<ForeignRecipe, ForeignError>¶
Parse a DESCRIPTION file, CRAN JSON object, or package-list body.