Learn R Programming

OPI (version 2.9)

opiClose: Close using OPI.

Description

Generic function for closing the chosen OPI implementation that is set with chooseOpi().

Usage

opiClose(...)

Arguments

Implementation specific parameters. See details.

Value

Returns NULL if close succeeded, otherwise an implementation dependant error.

Compass

Returns a list of err, which is an error code, and fixations, which is a matrix with three columns: time (same as time_hw in opiPresent), x (degrees relative to the centre of the image returned by opiInitialise - not the PRL), y (as for x), and one row per fixation.

References

Please cite: A. Turpin, P.H. Artes and A.M. McKendrick "The Open Perimetry Interface: An enabling tool for clinical visual psychophysics", Journal of Vision 12(11) 2012.

http://perimetry.org/OPI

See Also

chooseOpi

Examples

Run this code
# NOT RUN {
chooseOpi("SimGaussian")
if (!is.null(opiInitialize(sd=2)))
    stop("opiInitialize failed")
if (!is.null(opiClose()))
    stop("opiClose failed, which is very surprising!")
# }

Run the code above in your browser using DataLab