This drafts the strict method for creating serialisable functions.
crate() is a function constructor that evaluates its arguments in a local environment. After evaluation its parent is changed to inherit from the base package env so that the function is completely isolated from the search path.
Data can be imported by quasiquotation or by passing objects as named arguments to crate().
It is easy to call that function locally to test if it is indeed self-contained.
The function prints with its total size and the size of each local objects.
The best place to get an overview is the README.md file.
This drafts the strict method for creating serialisable functions.
crate()
is a function constructor that evaluates its arguments in a local environment. After evaluation its parent is changed to inherit from the base package env so that the function is completely isolated from the search path.crate()
.The function prints with its total size and the size of each local objects.
The best place to get an overview is the README.md file.