find_scope {pkgcond} | R Documentation |
Find the default scope of a call.
Description
This find the scope of the call. It includes the package of the call, the class if called from a method, and the name of the function called.
Usage
find_scope(frame = NULL, global = FALSE)
Arguments
frame |
The frame to infer scope from. |
global |
Should the global frame be listed in the scope. |
Examples
my_function <- function(){
scope <- find_scope()
"You are in" %<<% collapse(scope, '::')
}
my_function()
my_sights <- my_function
my_sights()
[Package pkgcond version 0.1.1 Index]