Skip to contents

Check whether a script has been loaded (with source) or not. The information is read from a list that stores a logical value (TRUE or FALSE) for each script name for which setLoaded has been called.

Usage

isLoaded(scriptName)

Arguments

scriptName

name of the script for which to get the "loaded" state

See also

setLoaded (see example there)

Examples

# For an example see kwb.utils::setLoaded()...

# In fact, the information about loaded scripts is stored in the
# R option "kwb.utils.loaded":
setLoaded("myScript")

options("kwb.utils.loaded")[[1]]
#> $myScript
#> [1] TRUE
#>