I have an R package with a boilerplate RMD file that I include. I would like to write a function to let the user retrieve this file, something like:
SaveDefaultMarkdown(destination = 'myFile.rmd')
The function would locate the file within my package and copy it to target location. I currently have this file saved in ./inst/rmd/markdown.rmd. Is there a robust way for code within the R package to find this file? Is there a different/preferred mechanism to include and deliver a file like this?
Thanks in advance.