Copy the skeleton RMarkdown file to a specified location
Source:R/createRmdTemplate.R
createRmdTemplate.RdThis function copies the skeleton RMarkdown template shipped with
ribiosUtils to the current working directory (or any specified path)
under a user-given file name. When no file name is provided, a default name
based on the current date is used.
Examples
if (FALSE) { # \dontrun{
## copy with default file name
createRmdTemplate()
## copy with a custom file name
createRmdTemplate("my_analysis.Rmd")
} # }
## copy to a temporary directory
dest <- createRmdTemplate(file.path(tempdir(), "test_report.Rmd"))
#> Skeleton file copied to '/var/folders/t5/f77_gwnj6p95qxy9py3fckx00000gn/T//Rtmp3v3NN8/test_report.Rmd'
file.exists(dest)
#> [1] TRUE
unlink(dest)