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.
isLoaded(scriptName)
scriptName | name of the script for which to get the "loaded" state |
---|
setLoaded
(see example there)
# 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 #> #> $welcome #> [1] TRUE #>