nationalparkservice / EMLeditor

EMLeditor edits EML metadata to add required fields for DataStore and automates creating drafts and uploading data packages to DataStore
https://nationalparkservice.github.io/EMLeditor/
Other
5 stars 6 forks source link

Set_CUI error message needs to be updated #131

Closed aloargit closed 4 months ago

aloargit commented 4 months ago

Describe the bug I was running an older NPS EML Creation Workflow script, it used EML Editor's set_cui function. The error message led me to another function that was not found. This "bug" is only to update the error message language to the new set_cui_code function.

To Reproduce Steps to reproduce the behavior:

  1. Run old code: my_metadata <- set_cui(my_metadata, "PUBLIC")
  2. Error message reads: Warning: set_cui() was deprecated in EMLeditor 0.1.5. Please use set_cui_dissem() instead.
  3. set_cui_dissem() gives this message: could not find function "set_cui_dissem"

Expected behavior Please change the error message to the new set_cui_code function. Example of new message: Error message reads: Warning: set_cui() was deprecated in EMLeditor 0.1.5. Please use set_cui_code() instead.

Also, correct instructions for set_cui to set_cui_code on this page: https://nationalparkservice.github.io/EMLeditor/articles/a02_EML_creation_script.html