Convert an AnvlGraph to a plain R function
Source:R/graph-to-quickr.R
graph_to_quickr_r_function.RdLowers a supported subset of AnvlGraph objects to a plain R function (no
compilation) suitable for quickr::quick(). The returned function expects
plain R scalars/vectors/arrays and returns plain R values/arrays.
Arguments
- graph
(
AnvlGraph)
Graph to convert.
Details
Most users will prefer jit() with backend = "quickr".
This function is the lower-level graph API.
See also
jit() with options(anvl.backend = "quickr") for tracing and compiling a
regular R function in one step.