If specified arguments are not valid, this function will print the usage information and exit the program with status=1.

parse_args(usage, args = commandArgs(TRUE), types = list())

Arguments

usage

a docopt string describing program usage

args

a list of command-line arguments

types

an optional list of types to which specific arguments should be coerced, e.g. list(num_cores="integer")

Value

a list of parsed arguments