get_all_created_funs: Get all functions created in a R file

View source: R/get_all_created_funs.R

get_all_created_funsR Documentation

Get all functions created in a R file

Description

Get all functions created in a R file

Usage

get_all_created_funs(file)

Arguments

file

A R file

Value

A character vector of function names

Examples

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)

fusen documentation built on May 29, 2024, 6:42 a.m.