cenv | R Documentation |
to be able to call a function within a function and access variables use: ev = "bla" this.fun = function() anon() datatable = data.table() anon = function() with(cenv(datatable), print(ev)) this.fun()
cenv(env = environment())
env |
can be a data.frame/table, or list, or environment |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.