Skip to contents

Declaring derivations

Functions that define Nix derivations that run R or Python code, or compile Quarto or R Markdown documents.

rxp_jl()
Create a Nix expression running a Julia function
rxp_py()
Create a Nix expression running a Python function
rxp_py_file()
rxp_py_file
rxp_qmd()
Render a Quarto document as a Nix derivation
rxp_r()
Create a Nix expression running an R function
rxp_r_file()
rxp_r_file
rxp_rmd()
Render an R Markdown document as a Nix derivation

Building the pipeline

Functions to generate and build the Nix pipeline

rixpress()
Generate Nix Pipeline Code with a Generic Default Target
rxp_make()
Build pipeline using Nix

Project utilities

Functions for initializing projects, copying outputs, reading derivations, and inspecting build artifacts.

print(<derivation>)
Print method for derivation objects
rxp_copy()
Copy derivations from the Nix store to current working directory
rxp_init()
Initialize rixpress project
rxp_inspect()
Inspect the build result of a pipeline.
rxp_list_logs()
List all available build logs
rxp_load()
Load output of a derivation
rxp_read()
Read output of a derivation

Archive import/export

Functions for importing and exporting Nix store paths using archive files.

export_nix_archive()
Export Nix store paths to an archive
import_nix_archive()
Import Nix store paths from an archive

DAG and CI tools

Tools for generating DAGs and preparing pipelines for rendering or deployment in CI environments.

dag_for_ci()
Export DAG of pipeline and prepare it for rendering on CI
generate_dag()
Generate a DAG from a list of derivations
rxp_ga()
Run a pipeline on GitHub Actions

R ↔︎ Python interop

Functions to move data and objects between R and Python runtimes.

rxp_py2r()
Transfer Python object into an R session.
rxp_r2py()
Transfer R object into a Python session.

Visualization

Functions for visualizing pipeline DAGs using different backends.

rxp_ggdag()
Create a Directed Acyclic Graph (DAG) representing the pipeline using ggplot2
rxp_visnetwork()
Create a Directed Acyclic Graph (DAG) representing the pipeline using visNetwork

Python import manipulation

Utilities to adjust Python import statements to match project or environment conventions.

add_import()
Add an import statement to Python files in the _rixpress folder matching a Nix environment name
adjust_import()
Adjust Python import statements