check.equal: Compare Lists or Environments

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This function compares two lists or environments. It is useful for comparing results obtained in R and Octave.

Usage

1
check.equal(x, y, msg)

Arguments

x

a list or an environment

y

a list or an environment

msg

a character string used (if not missing) in a message that is printed before the comparison. It is useful for separating multiple sequential comparisons.

Value

No value is returned, but prints out:

Examples

1
2
3
4
5
X <- matrix(1:64, 8)
ref <- svd(X)
res <- .O$svd(X, argout=3)

check.equal(ref, res, "R and Octave function 'svd'")

renozao/RcppOctave documentation built on May 27, 2019, 5:52 a.m.