-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added functions to add Arctic Report Card annotations into data packages #203
Conversation
…ion list. Added tests.
…tation in EML annotations
… essay topics annd key variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code looks good. could you have a look at the check results here: https://github.com/NCEAS/arcticdatautils/actions/runs/9783945702/job/27013717921?pr=203 we should get those tests passing again (even though they are not from your changes), and try to resolve the notes as well. I think the note regarding exported objects (:::
) can be ignored, but we should try to fix the global variable ones. IIRC I think that those result from issues with dplyr syntax
There is almost never a good reason to use |
not sure why the |
…ndex as first name and remaining text as last name
…ixes part of the note
…ad of dataone:::. Export is_resource_map so it can be used
…s to internal functions without :::
…tErrorDescription (individually importing each function)
… the fix for the errors
ontology.R
for creating new annotations for the Arctic Report Card datasetseml_arcrc_key_variable_annotation(valueLabel)
,eml_arcrc_essay_annotation(valueLabel)
property: "isAbout", value: "key variable" (e.g. "isAbout" "sea surface temperature")
property: "influenced", value: "essay topic" (e.g. "influenced" "Greenland Ice Sheet Indicator")
eml.R
for actually adding the new annotation into the EML doceml_arcrc_add_annotation(doc, property, label)
eml_arcrc_add_annotation(doc, "isAbout", "sea surface temperature")
eml_arcrc_add_annotation(doc, "isAbout", c("sea ice", "sea surface temperature"))
eml_arcrc_add_annotation(doc, "influenced", "Greenland Ice Sheet Indicator")
test_ontology.R
andtest_eml.R