Write metadata.yml file with custom R code formatted to allow line breaks.

write_metadata(data, path, style_code = FALSE)

Arguments

data

austraits metadata object (a list)

path

Location where the metadata file is to be written to

style_code

Should the R code be styled?

Examples

if (FALSE) {
f <- "data/Falster_2003/metadata.yml"
data <- read_metadata(f)
write_metadata(data, f)
}