R/utils.R
is_same_function.Rd
Helper function to check if two functions are the same
is_same_function(f, g)
Functions to compare.
Logical.
f1 <- function(x) { x^2 + 1 } f2 <- function(x) { x^2 + 1 } is_same_function(f1, f2) # TRUE #> [1] TRUE