render: render xml from data and template

Description Usage Arguments Methods (by class) See Also Examples

View source: R/render.R

Description

create metadata file from input data or yaml file

Usage

1
2
3
4
5
6
7
render(data, filename, ...)

## S3 method for class 'character'
render(data, filename, ..., template)

## S3 method for class 'list'
render(data, filename, ..., template)

Arguments

data

filepath or list

filename

name of file to write metadata to

...

additional lists or yaml filepaths to include or other arguments passed to methods (e.g., template="metadata.mustache")

template

character template or a filepath to a template to user in rendering the metadata. If missing, a default template will be used.

Methods (by class)

See Also

whisker.render

Examples

1
2
render(list('dogname'='fred','catname'='midred'),
   filename=NULL, list('dogname'='betty'), template="my dog's name is: {{dogname}}")

USGS-R/meddle documentation built on Nov. 21, 2020, 7:44 p.m.