Skip to content

Conversion to and from PACKAGES file #376

Description

@dgkf

Developer day outcome:
Allow package data to be able to be round-trip'ed to a PACKAGES file

In support of a conventional repository of package qualities, we decided to make the PACKAGES file (dcf format, similar to DESCRIPTION) the common denominator for sharing package metadata. Writing user-facing data (data which may be used to form decisions) out to a PACKAGES file and reading it back in to R should produce the same object that we may use within riskmetric itself for decisions.

This decision has a few ramifications:

  • Scalars are preferred because it's the least ambiguous data to write and read
  • Vectors are likely needed as well. Some investigation needed to standardize a style, but we initially took the dependencies fields as inspiration (eg, a, b, c comma separated list)
  • We would like error values to be able to pass through this format. Perhaps as error codes or as R code (similar to Authors@R)

Even before we have a full implementation of this, I think it would allow other teams to move forward if we could produce a minimal example of what we're aiming for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions