Ramd (version 0.2)

define: Load a bunch of dependencies by filename

Description

This is useful for reducing pollution in the global namespace, and not loading multiple files twice unnecessarily.

Usage

define(...)

Arguments

...
see examples.

Examples

Run this code
## Not run: 
# helper_fn <- define('some/dir/helper_fn')
# define(c('some/dir/helper_fn', 'some/other_dir/library_fn'), function(helper_fn, library_fn) { ... }
# helper_fns <<- define('some/dir/helper_fn1', 'some/otherdir/helper_fn2')
# helper_fns[[1]]('do something'); helper_fns[[2]]('do something else')
# ## End(Not run)

Run the code above in your browser using DataLab