commandArgs.def: commandArgs.def

Description Usage Arguments Examples

View source: R/tools.R

Description

A version of commandArgs function with default values

Usage

1
commandArgs.def(defaults, error.message = NULL, ...)

Arguments

defaults

a list of defaults, NA when no default is set

error.message

Show this error message and stop if not null. Defaults NULL.

Examples

1
args <- commandArgs.def(c(NA, 2), error.message='This program takes two input. The second input defaults to 2 if not supplied')

etabari/ehsanr documentation built on Aug. 5, 2019, 4:07 p.m.