get the next version of a data package
get_next_version.Rd
get_next_version
will access the EDI API to identify and
return the next version of a data package. If the data package does not
exist (i.e., we are constructing a new package), get_next_version
will return `1` and display a corresponding note.
Usage
get_next_version(
provided_scope = "knb-lter-cap",
provided_identifier,
display_message = FALSE
)
Arguments
- provided_scope
(character) scope of data package (defaults to CAP LTER: knb-lter-cap)
- provided_identifier
(integer) identifier of data package
- display_message
(boolean) indicates whether to display a message if an existing dataset is not identifed in the repository (thus returning a version number 1)