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.

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

env | The environment to start searching at. Default is
calling environment, i.e., |
---|---|

simplify | Logical. Should the output be simplified to character, if possible (usually it is not possible because environments don't always coerce correctly) |

A list of environments that is the actual search path, unlike `search()`

which only prints from `.GlobalEnv`

up to `base`

through user attached
packages.

`searchFullEx`

can be used to show an example of the use of `searchFull`

.

seeScope <- function() { searchFull() } seeScope()#> [[1]] #> <environment: 0x564e14e760b0> #> #> [[2]] #> <environment: 0x564e14e78ee8> #> #> [[3]] #> <environment: R_GlobalEnv> #> #> [[4]] #> [1] "package:magrittr" #> #> [[5]] #> [1] "package:raster" #> #> [[6]] #> [1] "package:sp" #> #> [[7]] #> [1] "package:reproducible" #> #> [[8]] #> [1] "devtools_shims" #> #> [[9]] #> [1] "package:testthat" #> #> [[10]] #> [1] "package:stats" #> #> [[11]] #> [1] "package:graphics" #> #> [[12]] #> [1] "package:grDevices" #> #> [[13]] #> [1] "package:utils" #> #> [[14]] #> [1] "package:datasets" #> #> [[15]] #> [1] "package:methods" #> #> [[16]] #> [1] "Autoloads" #> #> [[17]] #> <environment: base> #>searchFull()#> [[1]] #> <environment: 0x564e14e78ee8> #> #> [[2]] #> <environment: R_GlobalEnv> #> #> [[3]] #> [1] "package:magrittr" #> #> [[4]] #> [1] "package:raster" #> #> [[5]] #> [1] "package:sp" #> #> [[6]] #> [1] "package:reproducible" #> #> [[7]] #> [1] "devtools_shims" #> #> [[8]] #> [1] "package:testthat" #> #> [[9]] #> [1] "package:stats" #> #> [[10]] #> [1] "package:graphics" #> #> [[11]] #> [1] "package:grDevices" #> #> [[12]] #> [1] "package:utils" #> #> [[13]] #> [1] "package:datasets" #> #> [[14]] #> [1] "package:methods" #> #> [[15]] #> [1] "Autoloads" #> #> [[16]] #> <environment: base> #>searchFullEx()#> [[1]] #> <environment: namespace:reproducible> #> #> [[2]] #> [1] "imports:reproducible" #> #> [[3]] #> <environment: namespace:base> #> #> [[4]] #> <environment: R_GlobalEnv> #> #> [[5]] #> [1] "package:magrittr" #> #> [[6]] #> [1] "package:raster" #> #> [[7]] #> [1] "package:sp" #> #> [[8]] #> [1] "package:reproducible" #> #> [[9]] #> [1] "devtools_shims" #> #> [[10]] #> [1] "package:testthat" #> #> [[11]] #> [1] "package:stats" #> #> [[12]] #> [1] "package:graphics" #> #> [[13]] #> [1] "package:grDevices" #> #> [[14]] #> [1] "package:utils" #> #> [[15]] #> [1] "package:datasets" #> #> [[16]] #> [1] "package:methods" #> #> [[17]] #> [1] "Autoloads" #> #> [[18]] #> <environment: base> #>