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

In the fashion of 'node.js' <>, 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 <>
MaintainerRick Wargo <>
LicenseMIT + file LICENSE
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

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.