Learn R Programming

drake (version 7.13.10)

show_source: Show how a target/import was produced. [Stable]

Description

Show the command that produced a target or indicate that the object or file was imported.

Usage

show_source(target, config, character_only = FALSE)

Arguments

target

Symbol denoting the target or import or a character vector if character_only is TRUE.

config

A drake_config() list.

character_only

Logical, whether to interpret target as a symbol (FALSE) or character vector (TRUE).

Examples

Run this code
if (FALSE) {
isolate_example("contain side effects", {
plan <- drake_plan(x = sample.int(15))
cache <- storr::storr_environment() # custom in-memory cache
make(plan, cache = cache)
config <- drake_config(plan, cache = cache, history = FALSE)
show_source(x, config)
})
}

Run the code above in your browser using DataLab