r-lib / carrier

Create standalone functions for remote execution
Other
50 stars 2 forks source link

Implement crate() #1

Closed lionel- closed 5 years ago

lionel- commented 5 years ago

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.