Skip to contents

Returns the list containing the options as returned by docopt, the method name method and the location of the input data directory. It also updates the witchtools options, according to the call parameters.

Usage

witch_data_usage(file)

Arguments

file

Name of the make data file

Value

A named list of command-line options as returned by docopt, augmented with the elements witch_dir, idir and method. As a side effect, the options witchtools.idir, witchtools.method and witchtools.noCheck are set.

Examples

if (FALSE) { # \dontrun{
# Not run: needs a make_data script.
opts <- witch_data_usage("make_data_validation.R")
} # }