Learn R Programming

gdiff (version 0.2-5)

gdiffExamples: 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 function
gdiffExamples(fun, name=NULL, ...)
# S3 method for character
gdiffExamples(fun, name=fun, ...)

Value

A "gdiffComparison" object, which is a list containing information about the output files generated and the differences detected.

Arguments

fun

Either a function or the name of a function.

name

A name to be used for output files.

...

Further arguments; see gdiff.

Author

Paul Murrell

See Also

gdiff and gdiffPackage.

Examples

Run this code
# \donttest{
gdiffExamples(plot,
              controlDir=file.path(tempdir(), "Control"),
              testDir=file.path(tempdir(), "Test"),
              compareDir=file.path(tempdir(), "Compare"))
# }

Run the code above in your browser using DataLab