Skip to contents

Package overview

tarpolyglot tarpolyglot-package
tarpolyglot: run Python, Julia, and Rust as targets pipeline steps

Target constructors

Build a targets step that runs Python, Julia, or Rust. The non-_raw forms use non-standard evaluation on name/pattern for direct use in _targets.R; the _raw forms take a string name for use inside targets factories.

tar_target_py()
Target that runs a Python script
tar_target_py_raw()
Target that runs a Python script (raw / factory form)
tar_target_jl()
Target that runs a Julia script
tar_target_jl_raw()
Target that runs a Julia script (raw / factory form)
tar_target_rs()
Target that runs a Rust script
tar_target_rs_raw()
Target that runs a Rust script (raw / factory form)

Helpers

Supply a step’s code inline, track a script file as a dependency, branch while compiling Rust once, and a crew controller preconfigured for per-step interpreter isolation.

tar_code()
Inline code for a tarpolyglot step
tar_target_path()
Track a script argument as a targets dependency
polyglot_controller()
A crew controller preconfigured for polyglot isolation

Branching patterns

Dynamic-branching pattern helpers that mirror the targets patterns but compile the Rust crate once per pattern (in a <name>_rust_lib target) and reuse it across branches. On the Python/Julia constructors they fall back to the plain targets pattern.

tarpolyglot_map()
Dynamic-branching map that compiles Rust once
tarpolyglot_cross()
Dynamic-branching cross that compiles Rust once
tarpolyglot_slice()
Dynamic-branching slice that compiles Rust once
tarpolyglot_head()
Dynamic-branching head that compiles Rust once
tarpolyglot_tail()
Dynamic-branching tail that compiles Rust once
tarpolyglot_sample()
Dynamic-branching sample that compiles Rust once

Step workers

Worker functions the constructors call at pipeline run time. Documented because the constructor pages link to them; you do not normally call them directly.

run_py_step()
Execute a Python step (worker behind tar_target_py)
run_jl_step()
Execute a Julia step (worker behind tar_target_jl)
run_rs_step()
Execute a Rust step (worker behind tar_target_rs)
compile_rs_lib()
Compile a Rust step once for reuse across branches (worker behind tarpolyglot_map)
run_rs_step_prebuilt()
Run a Rust step from a pre-compiled library (worker behind tarpolyglot_map)