ffs_copy_template: Copy simulation template to filename
Description
Creates a simulation template file with all of the components of ff_simulate, ready for tinkering!
Usage
ffs_copy_template(
filename = "ff_simulation.R",
template = c("season", "week"),
overwrite = NULL
)Value
a success message signalling success/failure.
Arguments
- filename
New file name, defaults to putting "ff_simulation.R" into your current directory
- template
choice of template: one of "season" or "week"
- overwrite
a logical (or NULL) - overwrite if existing file found?
Examples
Run this code# \donttest{
tmp <- tempfile()
ffs_copy_template(tmp)
# }
Run the code above in your browser using DataLab