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 CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("lrequire")

Try the lrequire package in your browser

Any scripts or data that you put into this service are public.

lrequire documentation built on May 1, 2019, 6:49 p.m.