Skip to contents

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
)

Arguments

input

A file to be rendered to EML

output_file

The name of the output file

output_dir

The output directory for the rendered output_file

overwrite

(logical) Should any existing file be overwritten? Defaults to TRUE.

quiet

(logical) Should messages be suppressed? Defaults to FALSE.

Value

Does not return an object; called for the side-effect of rendering a file to EML.

Examples

if (FALSE) { # \dontrun{
use_metadata("example.Rmd") 
# assume the user edits the file, then calls:
render_metadata("example.Rmd", output_file = "example.xml")
} # }