Find Global Functions and Variables Used by a Closure
封闭使用的全局函数和变量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Finds global functions and variables used by a closure.
查找全局函数和变量的封闭使用。
用法----------Usage----------
findGlobals(fun, merge = TRUE)
参数----------Arguments----------
参数:fun
closure.
关闭。
参数:merge
logical
逻辑
Details
详情----------Details----------
The result is an approximation. R semantics only allow variables that might be local to be identified (and event that assumes no use of assign and rm).
其结果是近似的。 ŕ语义只允许变量,可能是当地确定(和事件,假定没有assign和rm的使用)。
值----------Value----------
Character vector if merge is true; otherwise, a list with functions and variables components.
特征向量如果merge是真实的,否则,functions和variables组件列表。