gdiff {gdiff} | R Documentation |
Generate and Compare Control and Test Output
Description
Generate a set of "control" graphical output files in one directory, a set of "test" graphical output files in another directory, and compare the two sets of output files (possibly generating "compare" graphical output of the differences in a third directory).
Usage
gdiff(x, ...)
## S3 method for class 'function'
gdiff(x, name=deparse(substitute(x)), ...)
## S3 method for class 'list'
gdiff(x, name, ...)
Arguments
x |
Either a function, or a named list
of functions (with names |
name |
A name to be used for output files. |
... |
Further arguments, currently including:
|
Value
A "gdiffComparison"
object, which is a list containing
information about the output files generated and the differences
detected.
Author(s)
Paul Murrell
See Also
gdiffExamples
,
gdiffPackage
,
gdiffOutput
, and
gdiffCompare
.
Examples
f <- function() plot(1)
gdiff(f,
controlDir=file.path(tempdir(), "Control"),
testDir=file.path(tempdir(), "Test"),
compareDir=file.path(tempdir(), "Compare"))