Skip to contents

Help

tarchetypes-package
targets: Archetypes for Targets

Literate programming targets

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

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

Target factories for storage formats

Storage formats

tar_format_nanoparquet()
Nanoparquet format

Simple files

tar_file_read()
Track a file and read the contents.

Static branching

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

Dynamic branching over files

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

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() tar_rep_raw()
Batched replication with dynamic branching.
tar_rep2() tar_rep2_raw()
Dynamic batched computation downstream of tar_rep()

Dynamic batched replication within static branches for data frames

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

Batched dynamic-within-static branching for data frames

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

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() tar_cue_age_raw()
Cue to run a target when the last output reaches a certain age
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() tar_hook_before_raw()
Hook to prepend code
tar_hook_inner() tar_hook_inner_raw()
Hook to wrap dependencies
tar_hook_outer() tar_hook_outer_raw()
Hook to wrap commands

Metaprogramming utilities

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

Domain-specific languages for pipeline construction

tar_assign()
An assignment-based pipeline DSL
tar_plan()
A drake-plan-like pipeline DSL