isLoaded: Has a Script Been Loaded (with source)?

View source: R/load.R

isLoadedR Documentation

Has a Script Been Loaded (with source)?

Description

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]]


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.