Rename a rendered file with YAML front matter metadata
Arguments
- file
A string that gives the path to the file to rename. Should be the result of
render()
in order to have metadata attached.- callback
A function that gets the rendered R Markdown YAML front matter metadata as an argument, and returns a new name for
file
. Any changes implied to the directory or file extension are ignored -- only the name is changed.
See also
render()
for creating an object to use as the file
argument.