find_symbols: Find all symbols used in a function or language object.

View source: R/find_deps.R

find_symbolsR Documentation

Find all symbols used in a function or language object.

Description

Find all symbols used in a function or language object.

Usage

find_symbols(x)

Arguments

x

A language object or function.

Value

A character vector of the symbols used in the object.

Examples

# Find all symbols used in the lm function
find_symbols(utils::install.packages)

# Does not find names of arguments
find_symbols(quote(foo(a = A)))
#> [1] "A"   "foo"

find_symbols(quote(function(x = X) NULL))
#> [1] "function" "X"


wch/staticimports documentation built on Jan. 13, 2024, 8:48 p.m.