gdiffExamples {gdiff}R Documentation

Generate and Compare Control and Test Output for Function Examples

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

gdiffExamples(fun, ...)
## S3 method for class 'function'
gdiffExamples(fun, name=NULL, ...)
## S3 method for class 'character'
gdiffExamples(fun, name=fun, ...)

Arguments

fun

Either a function or the name of a function.

name

A name to be used for output files.

...

Further arguments; see gdiff.

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

gdiff and gdiffPackage.

Examples


gdiffExamples(plot,
              controlDir=file.path(tempdir(), "Control"),
              testDir=file.path(tempdir(), "Test"),
              compareDir=file.path(tempdir(), "Compare"))


[Package gdiff version 0.2-5 Index]