Creates template for the Data input file (Excel or CSV) and Data documentation file (Markdown)
in the working directory or the directory specified by the dir
argument
DataInit(name = "Data", ext = c("xlsx", "csv"), overwrite = FALSE, dir = NULL)
Name of the data input files. Default is 'Data'. Use 'Example' to create populated example Data Input and Data Documentation files.
Optional file extension for input file. 'xlsx' (default) or 'csv'
Logical. Overwrite existing files?
Optional directory path to create the Data files. Default is `getwd()``
Nothing. Creates template data files in the working directory.
if (FALSE) {
DataInit("Example") # populated example
DataInit("myData") # empty template
}