find_funs | R Documentation |
This is a flexible function that matches function component against
a regular expression, returning the name of the function if there are any
matches. fun_args
and fun_calls
are helper functions that
make it possible to search for functions with specified argument names, or
which call certain functions.
find_funs(env = parent.frame(), extract, pattern, ...) fun_calls(f) fun_args(f) fun_body(f)
env |
environment in which to search for functions |
extract |
component of function to extract. Should be a function that
takes a function as input as returns a character vector as output,
like |
pattern |
stringr regular expression to results of |
... |
other arguments passed on to |
f |
function to extract information from |
find_funs("package:base", fun_calls, "match.fun", fixed = TRUE) find_funs("package:stats", fun_args, "^[A-Z]+$") fun_calls(match.call) fun_calls(write.csv) fun_body(write.csv) find_funs("package:utils", fun_body, "write", fixed = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.