Skip to content
ry

Installation

The latest release is 0.4.3-beta, which has Linux binaries only. macOS and Windows users install 0.4.1-beta for now. Each archive holds a single ry binary:

Platform Release Archive
Linux x86_64, glibc 2.35 or newer 0.4.3-beta ry-x86_64-unknown-linux-gnu.tar.gz
macOS on Apple silicon 0.4.1-beta ry-aarch64-apple-darwin.tar.gz
Windows x86_64 0.4.1-beta ry-x86_64-pc-windows-gnullvm.zip
Terminal window
curl -fsSL https://github.com/felix-andreas/ry/releases/download/0.4.3-beta/ry-x86_64-unknown-linux-gnu.tar.gz | tar xz
sudo mv ry /usr/local/bin/
ry --version

Every release is marked a pre-release, so name the tag: GitHub’s releases/latest points at an old one. On Windows, put the folder holding ry.exe on your PATH. Other ways to install:

Terminal window
cargo +nightly install --git https://github.com/felix-andreas/ry ry-lang # from source
nix profile install github:felix-andreas/ry # Nix and NixOS

ry builds on nightly Rust, and cargo install does not read the toolchain the repository pins, so name +nightly yourself.

Nightly snapshots for Linux x86_64 are on the releases page under tags named nightly.<date>.<time>.<hash>; only the newest five are kept. They are untested snapshots for early feedback, so use a numbered release for anything else.

ry check, ry fmt and the language server never run R. The commands that do (ry run, ry load, ry test, ry document) run on ry’s runtime, which needs base R:

ry Base R comes from
0.4.3-beta on Linux, built from source a copy of base R 4.6.2 inside ry; no GNU R needed
0.4.1-beta a GNU R installation, 4.3 or newer, built as a shared library

ry R runs your code on GNU R itself, so it always needs a GNU R installation. CLI covers R_HOME, BLAS and LAPACK, and where ry caches its runtime.

Editor Setup
VS Code Install the ry extension.
Positron, VSCodium Install the .vsix for your platform from the 0.3.2-beta release with Extensions: Install from VSIX… (ry is not on Open VSX).
Zed Install the R extension, then clone this repository and run zed: install dev extension on editors/zed. It uses the ry on your PATH, or downloads the latest release.
RStudio Formatting only: under Tools → Global Options → Code → Formatting, set Code formatter to External and the command to ry fmt.
Any LSP client Run ry server as the language server for R files.

The extension in VS Code, Positron and VSCodium bundles ry 0.3.2-beta, which has no runtime. Set its ry.path setting to a 0.4.3-beta binary to use ry run, the debugger and the console. The language server reads the project’s ry.toml, so the editor and ry check report the same findings. Editor settings lists the extension’s options.

Next: adopt ry on a project, starting with ry check.