Copies a file using fs::file_copy() and changes the output type in the yaml front matter from
html_notebook to html_document, removing all other output types.
Arguments
- file_path
Path to the source file
- new_path
Path to copy the converted file using
fs::file_copy()- overwrite
Overwrite file if it exists, passed to
fs::file_copy()
