Description Usage Arguments Details Value
Check if an object exists in a given environment or any parent environment from the given environment in the way that the eval function does by default.
1 | check_object_exists(obj, envir = globalenv())
|
obj |
object to check. It can be given as a symbol or as a string. |
envir |
environment where the existence of |
If the object is not found in the envir
environment it is searched in any parent environment
of envir
.
A list containing three elements:
found
flag indicating whether the object was found
eval
result of the evaluation of obj
either in envir
or in a parent environment
where it was found.
address
memory address of the object found. IMPORTANT: This memory address is NOT the object's memory
address when the object is given as a string, as in that case the memory address contains the memory address of the
string! (which varies every time, even if the string is the same, because every time the string allocates a different
memory address)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.