mod cran

module cran

Offline CRAN DESCRIPTION / package-list adapter.

Default tests never fetch the CRAN PACKAGES index. The parser accepts:

  1. a DESCRIPTION file (Package:, Version:, Depends:, Imports:);

  2. a JSON object with the same fields;

  3. a package list (jsonlite==1.8.8, one spec per line).

Base-R packages are dropped. R (>= x) becomes a dependency on EasyBuild R with 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.