ffs_copy_template: Copy simulation template to filename

View source: R/template_copy.R

ffs_copy_templateR Documentation

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
)

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?

Value

a success message signalling success/failure.

Examples



tmp <- tempfile()
ffs_copy_template(tmp)


ffsimulator documentation built on Feb. 16, 2023, 5:37 p.m.