Skip to content

Commit

Permalink
Merge pull request #149 from RobLBaker/main
Browse files Browse the repository at this point in the history
update test_license
  • Loading branch information
RobLBaker authored Sep 30, 2024
2 parents 8a23fda + cb6164c commit 2dfbe34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/required_eml_elements.R
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,14 @@ test_license <- function(metadata = load_metadata(directory)) {
cli::cli_abort(c(
"x" = "Metadata license and CUI dissemination code do not agree. Use {.fn EMLeditor::set_int_rights} or {.fn EMLeditor::set_cui}."))
}
else if(diss_code != "PUBLIC" & license != "No License/Controlled Unclassified Information"){
else if(diss_code != "PUBLIC" & license != "Unlicensed (not for public dissemination)"){
cli::cli_abort(c(
"x" = "Metadata license and CUI dissemination code do not agree. Use {.fn EMLeditor::set_int_rights} or {.fn EMLeditor::set_cui}."))
}
else {
cli::cli_inform(c("v" = "Metadata contains a valid license name."))
}
if(license == "No License/Controlled Unclassified Information"){
if(license == "Unlicensed (not for public dissemination)"){
cli::cli_warn(c("!" = "Metadata license name indicates that the data package is NOT public. Are you sure?"))
}
}
Expand Down

0 comments on commit 2dfbe34

Please sign in to comment.