NCEAS/metadig-r

Add system metadata to function arguments

Closed this issue · 1 comments

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

done in c4d44a8 and tested