rickwargo/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.

Getting started

Package details

AuthorRick Wargo <lrequire@rickwargo.com>
MaintainerRick Wargo <lrequire@rickwargo.com>
LicenseMIT + file LICENSE
Version0.1.3
URL https://github.com/rickwargo/lrequire
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("rickwargo/lrequire")
rickwargo/lrequire documentation built on May 27, 2019, 8:48 a.m.