Since this function needs to handle recursive functions, it needs to know the name of its input function, so this must be provided as a bare symbol.

loop_transform(fun, byte_compile = TRUE)

Arguments

fun

The function to transform. Must be provided as a bare name.

byte_compile

Flag specifying whether to compile the function after transformation.