Sources an R "Module" with Caching & Encapsulation, Returning Exported Vars


[Up] [Top]

Documentation for package ‘lrequire’ version 0.1.3

Help Pages

append.module.paths Append/Insert a path into module.paths, similar to append()
find.first.R Returns the path of the first found instance of 'module' in 'module.path'.
get.module.cache Returns the current file cache
get.module.paths Get existing collection of search paths of where to look for modules.
hide.not.found.warnings Globally hide warnings when modules are not found
lrequire Sources an R module with optional caching for subsequent attempts, exporting specified values
remove.from.module.cache Removes module from cache, applying same logic as 'find.first.R' to find and remove it
remove.module.paths Remove one or more paths from 'module.paths'
reset.module.cache Resets the module cache, ensuring files are loaded on next require
show.module.cache Prints the current file cache
show.not.found.warnings Globally show warnings when modules are not found