utilityFunctions: Get the search path of an environment

Description Usage Arguments Examples

Description

Returns a list with the environments or names of the environments on the search path. These functions are used for testing, use search instead.

Usage

1
2
3
4
5
6
7

Arguments

where

(environment | module | function) the object for the search path should be investigated. If we supply a list with functions (e.g. a module), the environment of the first function in that list is used.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
getSearchPath()
getSearchPathNames()
getSearchPathContent()

m <- module({
  export("foo")
  import("stats", "median")
  foo <- function() "foo"
  bar <- function() "bar"
})

getSearchPathContent(m)

modules documentation built on Feb. 7, 2021, 1:06 a.m.