R/get_all_created_funs.R
get_all_created_funs.Rd
Get all functions created in a R file
get_all_created_funs(file)
A R file
A character vector of function names
file_path <- tempfile(fileext = ".R") cat( "my_fun <- function() {1}", "my_fun2 <- function() {2}", sep = "\n", file = file_path ) get_all_created_funs(file_path) #> [1] "my_fun" "my_fun2"