Basically an expanded version of rmarkdown::render/quarto::quarto_render
to convert a metadata statement to EML. Note that this process ignores
the output
section of the supplied yaml
, though that should still be
supplied for rendering via other packages. Internally this function wraps
read_md()
and write_eml()
in that order; see those functions for details.
Usage
render_metadata(
input,
output_file = NULL,
output_dir = NULL,
overwrite = TRUE,
quiet = FALSE
)
Examples
if (FALSE) { # \dontrun{
use_metadata("example.Rmd")
# assume the user edits the file, then calls:
render_metadata("example.Rmd", output_file = "example.xml")
} # }