This function compares two lists or environments. It is useful for comparing results obtained in R and Octave.
check.equal(x, y, msg)
list
or an environment
list
or an environment
No value is returned, but prints out:
x
and the corresponding element in y
-- if
present.
## Don't show:
# roxygen generated flag
options(R_CHECK_RUNNING_EXAMPLES_=TRUE)
## End Don't show
X <- matrix(1:64, 8)
ref <- svd(X)
res <- .O$svd(X, argout=3)
check.equal(ref, res, "R and Octave function 'svd'")
## check.equal: R and Octave function 'svd'
## x: d u v
## y:
## d :OK0 | u :NULL | v :NULL |