tar_deps: Code dependencies

Description Usage Arguments Details Value See Also Examples

View source: R/tar_deps.R

Description

List the dependencies of a function or expression.

Usage

1
tar_deps(expr)

Arguments

expr

A quoted R expression or function.

Details

targets detects the dependencies of commands using static code analysis. Use tar_deps() to run the code analysis and see the dependencies for yourself.

Value

Character vector of the dependencies of a function or expression.

See Also

Other inspect: tar_deps_raw(), tar_glimpse(), tar_manifest(), tar_network(), tar_outdated(), tar_sitrep(), tar_validate(), tar_visnetwork()

Examples

1
2
3
4
5
6
tar_deps(x <- y + z)
tar_deps({
  x <- 1
  x + a
})
tar_deps(function(a = b) map_dfr(data, ~do_row(.x)))

targets documentation built on July 21, 2021, 5:07 p.m.