tarpolyglot: Run 'Python', 'Julia', 'Rust', and 'C++' Inside 'targets' Pipeline Steps

Adds target constructors that make it easy to use 'Python', 'Julia', 'Rust', and 'C++' inside a 'targets' pipeline using 'reticulate', 'JuliaCall', 'rextendr', and 'Rcpp'. Provides tar_target_py(), tar_target_jl(), tar_target_rs(), and tar_target_cpp() (with matching _raw() variants), each mirroring 'targets' tar_target() and tar_target_raw() functions. 'Python' and 'Julia' steps run a script via a live interpreter with optional R pre- and post-scripts; 'Rust' and 'C++' steps compile functions and call them from an R post-script. Results are then returned either as converted R objects or as files written to disk (format = "file"). Dynamic branching, environment/version selection, a 'crew' controller for isolation, and the full set of tar_target_raw() arguments are supported.

Version: 0.3.0
Imports: targets, reticulate, JuliaCall, crew, rextendr, Rcpp, callr, cli
Suggests: knitr, rmarkdown, tarchetypes, testthat (≥ 3.2.0), withr, RcppArmadillo
Published: 2026-11-22
DOI: 10.32614/CRAN.package.tarpolyglot
Author: Pierre Solomon ORCID iD [aut, cre]
Maintainer: Pierre Solomon <pierre.solomon at laposte.net>
BugReports: https://github.com/Pierre9344/tarpolyglot/issues
License: MIT + file LICENSE
URL: https://github.com/Pierre9344/tarpolyglot, https://pierre9344.github.io/tarpolyglot/
NeedsCompilation: no
SystemRequirements: The external language toolchains are optional and each is only required by its matching targets constructor: a Python installation for tar_target_py(), a Julia installation for tar_target_jl(), a Rust toolchain with Cargo for tar_target_rs() (on Windows, the GNU toolchain, to match R's ABI), and a C++ compiler reachable by R (e.g. via Rtools on Windows) for tar_target_cpp(). A pipeline that uses a single language needs only that language's toolchain.
Materials: NEWS
CRAN checks: tarpolyglot results

Documentation:

Reference manual: tarpolyglot.html , tarpolyglot.pdf
Vignettes: Using C++ inside targets (source, R code)
Using Julia inside targets (source, R code)
Using Python inside targets (source, R code)
Using Rust inside targets (source, R code)
Supplying scripts: paths, tracking, and inline code (source, R code)
Get started with tarpolyglot (source, R code)

Downloads:

Package source: tarpolyglot_0.3.0.tar.gz
Windows binaries: r-devel: tarpolyglot_0.2.1.zip, r-release: tarpolyglot_0.2.1.zip, r-oldrel: tarpolyglot_0.2.1.zip
macOS binaries: r-release (arm64): tarpolyglot_0.3.0.tgz, r-oldrel (arm64): tarpolyglot_0.3.0.tgz, r-release (x86_64): tarpolyglot_0.3.0.tgz, r-oldrel (x86_64): tarpolyglot_0.3.0.tgz
Old sources: tarpolyglot archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=tarpolyglot to link to this page.

mirror server hosted at Truenetwork, Russian Federation.