| crate | R Documentation | 
Put a function in a "lean" environment that does not carry unnecessary baggage with it (e.g. references to datasets).
crate(.fn, ..., .parent = topenv(parent.frame()), .compile = TRUE)
| .fn | ( | 
| ... | ( | 
| .parent | ( | 
| .compile | ( | 
meta_f = function(z) {
  x = 1
  y = 2
  crate(function() {
    c(x, y, z)
  }, x)
}
x = 100
y = 200
z = 300
f = meta_f(1)
f()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.