Does the requested input exist in the environment?
Source:R/check-vector-isExisting.R
check-vector-isExisting.Rd
Does the requested input exist in the environment?
Usage
isExisting(x, envir = parent.frame(), inherits = FALSE)
isNonExisting(x, envir = parent.frame(), inherits = FALSE)
allAreExisting(x, envir = parent.frame(), inherits = FALSE)
allAreNonExisting(x, envir = parent.frame(), inherits = FALSE)
Arguments
- x
character
. Variable names to check inenvironment
.- envir
environment
. Environment.- inherits
logical(1)
. Should the enclosing frames of theenvironment
be searched?
Functions
isExisting()
: Vectorized.isNonExisting()
: Vectorized.allAreExisting()
: Scalar.allAreNonExisting()
: Scalar.
Note
exists()
only supports character(1)
, so we are
exporting isExisting()
as a convenience function to check multiple
variables in a single call.
Updated 2023-10-02.