NCEAS / metadig-r

MetaDIG client package for R
Apache License 2.0
4 stars 4 forks source link

Add system metadata to function arguments #7

Closed jeanetteclark closed 1 year ago

jeanetteclark commented 1 year ago

Currently the runCheck and runSuite functions only call the document and the suite (or check) as arguments. This is in contrast to metadig-engine, where the sysmeta document is a parameter to the main method, and is passed to runSuite, then subsequently made available to runCheck.

We need to add this functionality to metadig-R so that we can write standalone R checks (run using the package, and later metadig-engine) that will depend on the sysmeta (see metadig-rake #9)

I'm not sure to what degree this matters, but the engine handles the sysmeta as just a single string, so metadig-r will likely need to flatten the XML into a single string as well so that any R checks written are compatible with both

jeanetteclark commented 1 year ago

done in c4d44a8 and tested