[R] undo compile? (or: remove bytecode from closure)

Benjamin Tyner btyner @ending from gm@il@com
Mon Jul 16 04:25:27 CEST 2018


Hi

Given a closure which has been compiled, what's the recommended way to 
recover the original? For example,

     > f <- function(x) x+1
     > fc <- cmpfun(f)
     > rm(f)
     > fc
     function(x) x+1
     <bytecode: 0x41d9228>

what's the best way to recover f from fc ?

Regards

Ben



More information about the R-help mailing list