is.ref: checking (for) references

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ref.R

Description

is.ref checks whether an object inherits from class "ref".
exists.ref checks whether an referenced object exists.

Usage

1
2

Arguments

x

an object that might be a reference

ref

a reference as returned from ref or as.ref

Value

logical scalar

Author(s)

Jens Oehlschl<e4>gel

See Also

ref, exists, inherits, class

Examples

1
2
3
4
5
6
7
8
  v <- 1
  good.r <- as.ref(v)
  bad.r <- ref("NonExistingObject")
  is.ref(v)
  is.ref(good.r)
  is.ref(bad.r)
  exists.ref(good.r)
  exists.ref(bad.r)

ref documentation built on May 2, 2019, 6:08 p.m.

Related to is.ref in ref...