Description Usage Arguments Value
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.
1 2 | requireVariable(name, desc = NULL, default = NULL,
what = character(), nmax = 1, alwaysAsk = TRUE, env = .GlobalEnv)
|
name |
Name of the required variable |
desc |
Description to display |
default |
Default value for the variable |
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? |
env |
Environment where the variable should be defined |
Used for side effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.