R/eml_version.R

Defines functions eml_version

Documented in eml_version

#' Set or check the EML version default
#'
#' @param version EML version, currently either eml-2.2.0 (release candidate),
#' or eml-2.1.1 (current version, 2011 - 2019)
#' @return returns the EML version string. As a side-effect, sets the
#' requested version as the default version by setting the `emld_db`
#' variable in [options()].
#' @examples
#' eml_version()
#'
#' @export
eml_version <- function(version = getOption("emld_db", "eml-2.1.1")){
 options(emld_db = version)
 version
}
cboettig/emld documentation built on March 6, 2019, 9:02 p.m.