dot-get_from_env: Obtain an object from a specific package based on a string

Description Usage Arguments

Description

Suppose you provide x = "abc::def", then this will return the 'def' function or object from the package 'abc'. If x = "ghi", then the 'ghi' object from the enclosing environment will be returned. If the actual variable 'ghi', rather than it's name, is passed in it will be returned unmodified.

Usage

1

Arguments

x

a string in the form "some_object_name" or "some_package::some_object_name". Or, a variable (in which case the variable is just returned; this allows the user to not need to know whether they are working with a variable or the variable name).


russHyde/miiq documentation built on Dec. 25, 2019, 10:56 a.m.