Package: lrequire 0.1.3
Rick Wargo
lrequire: Sources an R "Module" with Caching & Encapsulation, Returning Exported Vars
In the fashion of 'node.js' <https://nodejs.org/>, requires a file, sourcing into the current environment only the variables explicitly specified in the module.exports or exports list variable. If the file was already sourced, the result of the earlier sourcing is returned to the caller.
Authors:
lrequire_0.1.3.tar.gz
lrequire_0.1.3.zip(r-4.5)lrequire_0.1.3.zip(r-4.4)lrequire_0.1.3.zip(r-4.3)
lrequire_0.1.3.tgz(r-4.4-any)lrequire_0.1.3.tgz(r-4.3-any)
lrequire_0.1.3.tar.gz(r-4.5-noble)lrequire_0.1.3.tar.gz(r-4.4-noble)
lrequire_0.1.3.tgz(r-4.4-emscripten)lrequire_0.1.3.tgz(r-4.3-emscripten)
lrequire.pdf |lrequire.html✨
lrequire/json (API)
NEWS
# Install 'lrequire' in R: |
install.packages('lrequire', repos = c('https://rickwargo.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rickwargo/lrequire/issues
Last updated 9 years agofrom:4f8f37745a. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 07 2024 |
R-4.5-win | OK | Nov 07 2024 |
R-4.5-linux | OK | Nov 07 2024 |
R-4.4-win | OK | Nov 07 2024 |
R-4.4-mac | OK | Nov 07 2024 |
R-4.3-win | OK | Nov 07 2024 |
R-4.3-mac | OK | Nov 07 2024 |
Exports:append.module.pathsfind.first.Rget.module.cacheget.module.pathshide.not.found.warningslrequireremove.from.module.cacheremove.module.pathsreset.module.cacheshow.module.cacheshow.not.found.warnings
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Append/Insert a path into module.paths, similar to append() | append.module.paths |
Returns the path of the first found instance of 'module' in 'module.path'. | find.first.R |
Returns the current file cache | get.module.cache |
Get existing collection of search paths of where to look for modules. | get.module.paths |
Globally hide warnings when modules are not found | hide.not.found.warnings |
Sources an R module with optional caching for subsequent attempts, exporting specified values | lrequire |
Removes module from cache, applying same logic as 'find.first.R' to find and remove it | remove.from.module.cache |
Remove one or more paths from 'module.paths' | remove.module.paths |
Resets the module cache, ensuring files are loaded on next require | reset.module.cache |
Prints the current file cache | show.module.cache |
Globally show warnings when modules are not found | show.not.found.warnings |