Skip to contents

TRUE when both values have the same type and equal fields: their normalized forms are the same canonical JSON, and their host-only fields are identical().

Usage

r8equal(x, y)

Arguments

x, y

R8 values.

Value

Logical: One value.

Examples

op <- options(r8.namespace = "demo")
Point <- new_struct("Point", fields = list(x = type_double(), y = type_double()))
r8equal(Point(x = 1, y = 2), Point(x = 1L, y = 2))
#> [1] TRUE
options(op)