not.environment {quickcode} | R Documentation |
Check if entry is not an environment object
not.environment(x)
x |
vector entry |
a boolean value to indicate if entry is an environment
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