Extract function calls from character vector of R code
Source:R/extract_functions.R
extract_functions.Rd
Extract function calls from character vector of R code
Value
Returns character vector of function names without parentheses (e.g., it returns "library" rather than "library()") included in R code.
Examples
extract_functions(extract_code(
"https://raw.githubusercontent.com/JeffreyRStevens/flashr/refs/heads/main/README.Rmd"))
#> [1] "set" "install.packages" "install_github" "library"
#> [5] "flashcard" "flashcard" "read.csv" "head"
#> [9] "flashcard"