requireVariable: Ask user the value of a variable

Description Usage Arguments Value

Description

In interactive mode, this functions asks the user to type the value of a given variable. In non-interactive mode, it searchs the value in the command line arguments and it returns an error if the value does not exist.

Usage

1
2
requireVariable(name, desc = paste("Enter value for variable", name),
  what = character(), nmax = 1, alwaysAsk = TRUE)

Arguments

name

Name of the required variable

desc

Description to display

what

Type of data to read in interactive mode.

nmax

Number of values to read in interactive mode.

alwaysAsk

If the variable already exists, should the function ask a new value?

Value

Used for side effects


cuche27/project documentation built on May 14, 2019, 12:50 p.m.