Learn R Programming

reproducible (version 0.2.0)

searchFull: Search up the full scope for functions

Description

This is like base::search but when used inside a function, it will show the full scope (see figure in the section Binding environments on http://adv-r.had.co.nz/Environments.html). This full search path will be potentially much longer than just search() (which always starts at .GlobalEnv).

searchFullEx shows an example function that is inside this package whose only function is to show the Scope of a package function.

Usage

searchFull(env = parent.frame(), simplify = TRUE)

searchFullEx()

Arguments

env

The environment to start searching at. Default is calling environment, i.e., parent.frame()

simplify

Logical. Should the output be simplified to character, where possible

Value

Similar to readLines. It may not return identical results.

Examples

Run this code
# NOT RUN {
seeScope <- function() {
  searchFull()
}
seeScope()
searchFull()

searchFullEx()
# }

Run the code above in your browser using DataLab