Adds the license element to a dataset list according to EML standards.

add_license(parent_element, license_metadata)

Arguments

parent_element

A list representing the EML project or dataset.

license_metadata

A table or list containing license metadata: see create_license

Value

The dataset list or project with intellectual rights information appended.

Examples

license_metadata = list(default_license = "CCBY")
dataset <- list() %>%
    add_license(license_metadata)
dataset
#> $intellectualRights
#> $intellectualRights$para
#> [1] "This information is released under the Creative Commons license - Attribution - CC BY (https://creativecommons.org/licenses/by/4.0/). The consumer of these data (\"Data User\" herein) is required to cite it appropriately in any publication that results from its use. The Data User should realize that these data may be actively used by others for ongoing research and that coordination may be necessary to prevent duplicate publication. The Data User is urged to contact the authors of these data if any questions about methodology or results occur. Where appropriate, the Data User is encouraged to consider collaboration or co-authorship with the authors. The Data User should realize that misinterpretation of data may occur if used out of context of the original study. While substantial efforts are made to ensure the accuracy of data and associated documentation, complete accuracy of data sets cannot be guaranteed. All data are made available \"as is.\" The Data User should be aware, however, that data are updated periodically and it is the responsibility of the Data User to check for new versions of the data. The data authors and the repository where these data were obtained shall not be liable for damages resulting from any use or misinterpretation of the data. Thank you."
#> 
#> 
#> $licensed
#> $licensed$licenseName
#> [1] "Creative Commons Attribution 4.0 International"
#> 
#> $licensed$url
#> [1] "https://spdx.org/licenses/CC-BY-4.0.html"
#> 
#> $licensed$identifier
#> [1] "CC-BY-4.0"
#> 
#>