not.environment: Not an environment

View source: R/not.environment.R

not.environmentR Documentation

Not an environment

Description

Check if entry is not an environment object

Usage

not.environment(x)

Arguments

x

vector entry

Value

a boolean value to indicate if entry is an environment

Examples

test.env <- new.env()
test.notenv <- list(t=1)
not.environment(test.env) # FALSE
not.environment(test.notenv) # TRUE
if(not.environment(test.notenv)) message("yes") # yes


quickcode documentation built on April 11, 2025, 5:49 p.m.