Description Usage Arguments Examples
This is useful for reducing pollution in the global namespace, and not loading multiple files twice unnecessarily.
| 1 | define(..., envir = parent.env(topenv()), local)
 | 
| ... | see examples. | 
| envir | environment. The parent environment to use when calling
 | 
| local | logical. If  | 
| 1 2 3 4 5 6 7 | ## 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.