Last data update: 2014.03.03
|
R: Dispatch tests to the appropriate handler
dispatch_test | R Documentation |
Dispatch tests to the appropriate handler
Description
runs a test the the appropriate handler.
Usage
dispatch_test(test, file,
parse.data = getParseData(parse(file, keep.source = TRUE)),
lines = readLines(file), quiet = FALSE,
warning = with_default(test$warning, FALSE))
Arguments
test |
the test
|
file |
the file to check
|
parse.data |
parse data from
getParseData
|
lines |
the lines to evaluate, overrides file.
|
quiet |
should the test be quiet, i.e. no messages
or warnings?
|
warning |
should messages be upgraded to warnings,
ignored if quiet=TRUE .
|
Value
returns the results from the test handler, which should
be either a TRUE for a passed test or the lines,
locations, and/or string violating the rules.
Results
|