This function places a metadata template at the address specified by "file"
,
defaulting to "metadata.Rmd"
in the working directory. The template is
built in such a way that standard rendering with rmarkdown
or Quarto to
HTML or PDF will function; but also that it renders to valid EML using
render_metadata()
.
Usage
use_metadata(file = NULL, overwrite = FALSE, quiet = FALSE)
Arguments
- file
(string) A name for the resulting file, with either .Rmd
or
.Qmd
as a suffix. If NULL
will default to metadata.md
.
- overwrite
(logical) Should any existing file be overwritten? Defaults
to FALSE
.
- quiet
(logical) Should messages be suppressed? Defaults to FALSE
.
Value
Doesn't return anything to the workspace; called for the side-effect
of placing a metadata statement in the working directory.
Examples
if (FALSE) { # \dontrun{
use_metadata("example.Rmd")
} # }