R/utils.R
as_fun_string.Rd
Convert function to single string
as_fun_string(f)
Function to convert.
A single character vector representing the function.
f <- function(x) { x^2 + 1 } as_fun_string(f) #> [1] "function (x) { x^2 + 1 }"