render | R Documentation |
create metadata file from input data or yaml file
render(data, filename, ...)
## S3 method for class 'character'
render(data, filename, ..., template)
## S3 method for class 'list'
render(data, filename, ..., template)
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 |
character template or a filepath to a template to user in rendering the metadata. If missing, a default template will be used. |
character
: render text to a file from a yaml file
list
: render text to a file from a list
whisker.render
render(list('dogname'='fred','catname'='midred'),
filename=NULL, list('dogname'='betty'), template="my dog's name is: {{dogname}}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.