read_object_environment: Read an object from an environment

View source: R/read_object_environment.R

read_object_environmentR Documentation

Read an object from an environment

Description

Read an object from an environment

Usage

read_object_environment(object, env, warn = TRUE)

Arguments

object

the name of the object

env

the environment

warn

Issue a warning if the object is not found in the environment. Defaults to TRUE

Value

the object or NULL is the object doesn't exists in the environment

Examples

  object <- "test"
  value <- TRUE
  env <- new.env()
  assign(x = object, value = value, envir = env)
  read_object_environment(object, env)

INBO-Natura2000/n2khelper documentation built on April 5, 2022, 5:40 p.m.