Skip to contents

Create and update a package

create_rzig_package()
Create a package that uses RZig
use_rzig()
Add RZig to a package
update_rzig()
Update the rzig framework and build files of a package
use_rzig_ci()
Add a GitHub Actions workflow that checks the package with Zig

Generate the bindings

Each step of the workflow is a function; document() runs them in order.

scan_exports()
Scan the Zig source of a package for exported functions
render_bindings()
Render the generated bindings for a set of exported functions
document()
Generate R bindings from Zig exports
rzig_status()
Report the state of a Zig-backed package

Build and test

find_zig()
Locate a supported Zig compiler
install_zig() uninstall_zig() zig_home()
Download and install a supported Zig compiler
build_zig()
Compile and install a Zig-backed package, and report the first errors
test_zig()
Run the Zig tests of a package

Zig from the R prompt

zig_function() zig_source() zig_eval()
Compile Zig code from the R prompt
eng_zig()
A knitr engine for Zig chunks

Package features

use_rzig_lapack()
Link the LAPACK and BLAS libraries of R
use_rzig_mixed()
Build C, C++ and Fortran sources next to the Zig code
use_rzig_import() use_rzig_module()
Share Zig modules between R packages

About

rzig rzig-package
Safe Zig Bindings