Skip to contents

Help

tarchetypes-package
targets: Archetypes for Targets

Literate programming targets

tar_knit()
Target with a knitr document.
tar_knit_raw()
Target with a knitr document (raw version).
tar_quarto()
Target with a Quarto project.
tar_quarto_raw()
Target with a Quarto project (raw version).
tar_quarto_rep()
Parameterized Quarto with dynamic branching.
tar_quarto_rep_raw()
Parameterized Quarto with dynamic branching (raw version).
tar_render()
Target with an R Markdown document.
tar_render_raw()
Target with an R Markdown document (raw version).
tar_render_rep()
Parameterized R Markdown with dynamic branching.
tar_render_rep_raw()
Parameterized R Markdown with dynamic branching (raw version).

Literate programming utilities

tar_knitr_deps()
List literate programming dependencies.
tar_knitr_deps_expr()
Expression with literate programming dependencies.
tar_quarto_files()
Quarto file detection

Formats

Simple files

tar_file_read()
Track a file and read the contents.

Static branching

tar_combine()
Static aggregation.
tar_combine_raw()
Static aggregation (raw version).
tar_map()
Static branching.

Dynamic branching over files

tar_files()
Dynamic branching over output or input files.
tar_files_raw()
Dynamic branching over output or input files (raw version).
tar_files_input()
Dynamic branching over input files or URLs
tar_files_input_raw()
Dynamic branching over input files or URLs (raw version).

Dynamic grouped data frames

tar_group_by()
Group a data frame target by one or more variables.
tar_group_count()
Group the rows of a data frame into a given number groups
tar_group_select()
Group a data frame target with tidyselect semantics.
tar_group_size()
Group the rows of a data frame into groups of a given size.

Dynamic batched replication

tar_rep()
Batched replication with dynamic branching.
tar_rep_raw()
Batched replication with dynamic branching (raw version).
tar_rep2()
Dynamic batched computation downstream of tar_rep()
tar_rep2_raw()
Dynamic batched computation downstream of tar_rep() (raw version).

Dynamic batched replication within static branches for data frames

tar_map_rep()
Dynamic batched replication within static branches for data frames.
tar_map_rep_raw()
Dynamic batched replication within static branches for data frames (raw version).

Batched dynamic-within-static branching for data frames

tar_map2_count()
Dynamic-within-static branching for data frames (count batching).
tar_map2_count_raw()
Dynamic-within-static branching for data frames (count batching; raw version).
tar_map2_size()
Dynamic-within-static branching for data frames (size batching).
tar_map2_size_raw()
Dynamic-within-static branching for data frames (size batching; raw version).

Target selection

tar_select_names()
Select target names from a target list
tar_select_targets()
Select target objects from a target list

Targets with custom invalidation rules

tar_age()
Create a target that runs when the last run gets old
tar_change()
Target that responds to an arbitrary change.
tar_download()
Target that downloads URLs.
tar_force()
Target with a custom condition to force execution.
tar_skip()
Target with a custom cancellation condition.

Cues

tar_cue_age()
Cue to run a target when the last output reaches a certain age
tar_cue_age_raw()
Cue to run a target when the last run reaches a certain age (raw version)
tar_cue_force()
Cue to force a target to run if a condition is true
tar_cue_skip()
Cue to skip a target if a condition is true

Hooks

tar_hook_before()
Hook to prepend code
tar_hook_inner()
Hook to wrap dependencies
tar_hook_outer()
Hook to wrap commands

Metaprogramming utilities

tar_eval()
Evaluate multiple expressions created with symbol substitution.
tar_eval_raw()
Evaluate multiple expressions created with symbol substitution (raw version).
tar_sub()
Create multiple expressions with symbol substitution.
tar_sub_raw()
Create multiple expressions with symbol substitution (raw version).

Domain-specific languages for pipeline construction

tar_plan()
A drake-plan-like pipeline archetype