Learn R Programming

simsalapar (version 1.0-12)

doCheck: Checking a User's doOne

Description

doCheck() checks, if possible, a user's doOne() function for return objects of correct sizes.

Usage

doCheck(doOne, vList, nChks = ng, verbose = TRUE)

Value

None.

Arguments

doOne

a user-supplied function for computing one row of the (physical) grid.

vList

a list of variable specifications. Each variable spec is itself a named list which must contain a "value" component.

nChks

number of rows randomly picked from the (physical) grid which are used for a basic test of the evaluation and return value of doOne().

verbose

logical indicating whether check output is displayed.

Author

Marius Hofert and Martin Maechler.

Examples

Run this code
## definition
doCheck

Run the code above in your browser using DataLab