Better get()
Arguments
- pos, mode, inherits
arguments passed to
base::get(). Note that argumentenviris not passed tobase::get(), since it is typically defined dynamically by that function.- ...
additional arguments are passed to
base::get(). The only additional argument isenvirwhich is not recommended, but is here for compatibility with the base functionality.- character
string with an R object name, with or without an R package prefix. Note that only one value is recognized.
Examples
get("get", pos="package:base")
#> function (x, pos = -1L, envir = as.environment(pos), mode = "any",
#> inherits = TRUE)
#> .Internal(get(x, envir, mode, inherits))
#> <bytecode: 0x000001df653bc428>
#> <environment: namespace:base>
better_get("base::get")
#> function (x, pos = -1L, envir = as.environment(pos), mode = "any",
#> inherits = TRUE)
#> .Internal(get(x, envir, mode, inherits))
#> <bytecode: 0x000001df653bc428>
#> <environment: namespace:base>