Learn R Programming

targets (version 0.0.0.9000)

tar_deps_raw: Code dependencies (raw version)

Description

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.

Examples

Run this code
# NOT RUN {
tar_deps_raw(quote(x <- y + z))
tar_deps_raw(
  quote({
    x <- 1
    x + a
  })
)
tar_deps_raw(function(a = b) map_dfr(data, ~do_row(.x)))
# }

Run the code above in your browser using DataLab