One toolchain
Checks, formats and navigates the R you have today.
Plain R with no annotations: types are inferred, and the bug is found anyway.Checking guide
With that bug fixed, one #: comment finds the next. R reads it as a comment, so the file still runs on GNU R.Annotations
A backwards-compatible R runtime
Runs your R unchanged, and adds the types R is missing.
4 times faster than data.table across 19 benchmark queries on 10 million rows, 4 cores.
| program | ry vs GNU R | speedup | GNU R | ry |
|---|---|---|---|---|
| fib | 83x | 0.500 s | 0.006 s | |
| integer_loop | 13x | 0.427 s | 0.033 s | |
| drawdown | 9.37x | 0.209 s | 0.023 s | |
| loop_sum | 7.71x | 0.162 s | 0.021 s | |
| array_map | 6.67x | 0.193 s | 0.029 s | |
| vector_loop | 5.82x | 0.207 s | 0.037 s | |
| array_dot | 5.62x | 0.155 s | 0.028 s | |
| array_filter | 5.39x | 0.120 s | 0.022 s | |
| array_sum | 5.20x | 0.400 s | 0.076 s | |
| nested_loops | 5.15x | 0.134 s | 0.026 s | |
| closures | 3.28x | 0.491 s | 0.150 s | |
| simulation | 3.17x | 0.364 s | 0.121 s | |
| vector_arith | 2.82x | 0.153 s | 0.053 s | |
| vasicek | 1.91x | 0.218 s | 0.120 s | |
| jackknife | 1.87x | 0.363 s | 0.188 s | |
| log_rank | 1.36x | 0.262 s | 0.190 s |
Our numeric kernels, untyped, on ry and on GNU R with its bytecode compiler, bars on a logarithmic scale. Measured on 2026-11-11 at ry 4d96a342b with GNU R 4.6.2 on Intel(R) Xeon(R) Processor @ 2.30GHz, 4 cores, Linux 6.18.44-fc-v378; 10 paired rounds. Full table, programs and method
Take your R code into the future
Use ry today on the code you have, and move it to typed code one step at a time.
Works with the code you have todayAdjust your code, still backwards compatibleUse what ry adds, no longer runs on GNU RStrict mode (R--): only this circle
Install
cargo install --git https://github.com/felix-andreas/ry ry-lang
ry check .