Adds the publication date element to a dataset list according to EML standards.

add_pub_date(parent_element, date = NULL)

Arguments

parent_element

A list representing the EML project or dataset.

date

The publication date. If left null, it will be assigned the current date. This can be overridden by putting in a specific date: see create_pub_date

Value

The dataset list or project with publication date information appended.

Examples

 
dataset <- list() %>%
    add_pub_date()
dataset
#> $pubDate
#> [1] "2023-08-01"
#>