Skip to contents

Same as tar_deps() except expr must already be an unquoted function or expression object.

Usage

tar_deps_raw(expr)

Arguments

expr

An R expression object or function.

Value

Character vector of the dependencies of a function or expression.

See also

Examples

tar_deps_raw(quote(x <- y + z))
#> [1] "+"  "<-" "y"  "z" 
tar_deps_raw(
  quote({
    x <- 1
    x + a
  })
)
#> [1] "+"  "<-" "a"  "{" 
tar_deps_raw(function(a = b) map_dfr(data, ~do_row(.x)))
#> [1] ".x"      "b"       "data"    "do_row"  "map_dfr"