News
Unreleased
Section titled “Unreleased”Faster namespace loads
Section titled “Faster namespace loads”Loading a package’s namespace does less work in R. ls() sorts names by a byte key per name, methods::cacheMetaData() handles packages whose old classes ask for the Ops group natively, the registered native routines are bound in one pass, and readRDS() of a path reads the file whole instead of through a connection. loadNamespace("rlang") in a fresh process takes 31 ms instead of 45 ms, and 30 load and unload cycles in one process take 0.54 s instead of 0.66 s.
Package code is read without decompressing it
Section titled “Package code is read without decompressing it”A package’s code image holds each lazy-loaded record uncompressed, and ry maps the image and reads records from it in place instead of inflating them from the .rdb. The base packages get such images when the start image is built. On the testthat workload no .rdb is opened, fetches take 33% fewer instructions, the whole run takes 1.3% fewer, and four workers together hold 10 MB less private memory.
Fewer futile collections
Section titled “Fewer futile collections”When a minor collection leaves the heap full, the collector predicts from the last escalation how much an intermediate collection would free, and goes straight to a major one when that is too little. On the records program of the real-world benchmark, collection takes a third fewer instructions and the whole run 9% fewer, and peak memory drops from 111 MB to 97 MB. R_PreserveObject marks the object’s header, so releasing a call frame no longer looks the environment up in a hash table.
Package code is allocated old
Section titled “Package code is allocated old”A lazy-load fetch, which reads a package’s functions and data when they are first used, allocates them directly in the old generation, so minor collections no longer trace them only to promote them. library(testthat) runs no collection and 6% fewer instructions, the collector’s instructions over the testthat workload drop by 14%, and peak memory is unchanged.
Cheaper minor collections
Section titled “Cheaper minor collections”A minor collection checks an already marked object inline, without a function call or bounds checks, and handles a newly marked one out of line. Minor collections during library(testthat) take 29% fewer instructions, and the testthat workload takes 1.2% fewer in total.
Collections skip what did not change
Section titled “Collections skip what did not change”A minor collection no longer reads dead call frames that own no memory, and it marks only the method-cache entries stored since the last collection instead of the whole S3 and S4 cache. The garbage collection share of --profile-summary on the testthat workload halves, from 0.046 s to 0.021 s, and the collection pauses take 35% less time; part of that is the summary’s own counting of freed objects, which the summary lists apart as “profile summary bookkeeping”.
Package-specific fast paths
Section titled “Package-specific fast paths”ry runs a few package functions natively when the installed package is exactly the release the native code follows; any other release runs its own R code unchanged.
| Package | Function | Release | Effect |
|---|---|---|---|
| rlang | trace_back() |
1.3.0 | 0.16 ms instead of 9 ms at a depth of 200 frames, so every expect_error() and expect_warning() is cheaper; the testthat workload takes 31% fewer instructions |
| withr | the helpers behind local_envvar(), with_envvar(), local_options(), with_options() and local_language() |
3.0.3 | the testthat workload takes 23% fewer instructions, and every test skips creating and deleting a temporary directory, so its wall time halves together with the base fast paths below |
Faster environment variables
Section titled “Faster environment variables”Sys.getenv() looks up every name it is given in one pass over the environment. Sys.setenv() leaves a variable alone when it already holds the new value, and Sys.unsetenv() skips a variable that is not set. withr’s local_envvar() restores often hit both cases. A lookup rejects most variables after comparing one byte, as glibc does, and together these take 2.4% off the instructions the testthat workload runs.
Faster partial matching and name lookups
Section titled “Faster partial matching and name lookups”pmatch() and charmatch() compare each input with the table in place, without copying the strings, and mark the table entries already used in a bitset. Native code that reads an argument or option by name uses a symbol installed at startup instead of interning the name on every call, and reading the text of a string the heap has already validated as UTF-8 is inlined at each call site. The testthat workload runs 1.2% fewer instructions, and 2.25% fewer together with the environment-variable lookups above.
Faster assignment forms and kernels in the public benchmark suites
Section titled “Faster assignment forms and kernels in the public benchmark suites”<<-, array slab writes such as a[i, 2, ] <- v, matrix m[[i, j]], vector growth, attr<-,
%*% on small matrices and complex vector arithmetic run on compiled or direct paths. With the
JIT on, the geometric mean speed-up over GNU R rises from 1.58x to 1.90x on the awfy programs,
from 2.27x to 2.78x on rcp and from 1.53x to 2.04x on shootout (tools/bench/bench.py --public all --repeat 3). Complex division and non-integer powers follow C99, so special values
such as (Inf+1i) / 0 match GNU R.
Cheaper minor collections and package metadata reads
Section titled “Cheaper minor collections and package metadata reads”Large lists and character vectors record stores in cards, so a minor collection rescans only the
parts that changed, and growing a list with [[<- moves its elements instead of copying them.
rcp’s list-for drops from 1.54 s to 0.73 s and list-while from 1.20 s to 0.73 s, which takes both
past GNU R (1.63x and 1.58x), and the rcp geometric mean rises from 2.64x to 2.80x.
unserialize() and readRDS() on a connection read from its buffer, which takes a third off
their cost during library(testthat).
Faster attr() lookups, large matrix products and small vector allocation
Section titled “Faster attr() lookups, large matrix products and small vector allocation”attr(x, which) finds a full or partial match in one pass over the attributes, which takes
shootout’s knucleotide_brute_2 from 1.38x to 2.08x of GNU R. %*% computes four result columns
per pass over its left operand, with each entry summed in the same order as before, so results
are unchanged and spectralnorm_math rises from 1.27x to 1.44x.
Small vectors are allocated inline at the call site, which takes 2.2% off the instructions of
the testthat workload.
ry 0.4.3-beta, Linux only
Section titled “ry 0.4.3-beta, Linux only”Released in November 2026 as a pre-release.
Version 0.4.3-beta makes calls, S3 and S4 dispatch and the hottest builtins cheaper, fixes the S4
and ry check problems that test users reported, and brings more numerical routines to bit
identity with GNU R. It ships Linux x86_64 binaries only: macOS and Windows users stay on
0.4.1-beta until a later release
fixes those builds (Installation).
Every figure below was reported by the change that introduced it (instructions are callgrind counts per call). None was re-measured for these notes.
Highlights
Section titled “Highlights”-
Faster closure calls. Guards carry version stamps, calls to a known callee are tail dispatched, a callee without side effects skips its promises, and each call site caches its argument matching. A closure call takes 3,411 instructions, against 3,968 before and 4,602 in GNU R.
-
S3 and S4 dispatch cache per call site. An S3 dispatch takes 7,688 instructions (GNU R 9,824) and an S4 dispatch 8,688 (GNU R 11,681).
-
Native prologues for hot base closures. The validation workload runs 1.94 times as fast as GNU R.
-
Builtin fast paths. Instructions per call, before and after, with GNU R for comparison:
Call Before After GNU R identical(a, b)8,545 1,818 3,149 x %in% y11,327 1,745 8,226 isTRUE(x)6,087 1,114 5,594 !x944 563 750 x[["net"]] <- 34,910 987 2,011 -
The JIT is cheaper to keep on. Proofs are shared across sibling enclosures, nothing is revalidated while no binding has moved, and
pkg::f(...)calls are compiled.
Measured against 0.4.2-beta
Section titled “Measured against 0.4.2-beta”On the bench-real workloads (10 real-world programs, geometric mean of the speed relative to GNU R,
--repeat 3), 0.4.3-beta runs 1.22 times as fast as GNU R with the JIT on and 1.28 times with it
off. 0.4.2-beta measured 0.90 times with the JIT on. The new testthat workload
(tools/bench/applications/testthat.R) runs 1.12 times as fast with the JIT on and 1.23 times with it off.
Also in this release
Section titled “Also in this release”- S4 definitions run natively in more shapes. A class under a class-union member is defined
natively: 200 such classes take 20 ms, against 831 ms on the R path and 1,017 ms in GNU R.
Methods that omit or rename generic arguments, and generics with a braced body, are native too.
setAs()andsetClassUnion(member = )are matched in the load index, so both are held back until first use. S4 subclass bookkeeping and.localmethods run natively. deparse(getClass("A"))matches GNU R, and a segfault when deparsing an S4 object is fixed.ry checkno longer crashes on a forward capture after a hinted lambda.solve()works without a system LAPACK, because the Linux archive ships GNU R’s referencelibRblas.soandlibRlapack.so.gc()reports a max-used figure close to the real peak. A reproducer that reported 4,198 MB now reports 575 MB, against an 831 MB process peak. GNU R counts the peak at allocation, while ry samples it at collections.- Profile summaries for packages.
ry load --profile-summary FILEandry test --profile-summary FILEwrite the summaryry runwrites.RY_PROFILE_SUMMARY_DIR=DIRmakes every process writeDIR/ry-profile-<start>-<pid>.md, and child processes inherit it (CLI reference). - Load plans are linear in the S4 definitions. The first plan of a 591-file S4 package drops from 38 ms to 14 ms.
- More numerics match GNU R bit for bit:
pgamma,qgamma,pbeta,qbeta, the quantile search ofqbinom,qpoisandqnbinom,dnbinom,loess,smooth.spline,lowess,fft, and the long double accumulation and matrix-product modes.options(ry.blas = "host")orRY_BLAS=hostsends%*%,crossprodandtcrossprodthrough the installed BLAS, so the bits follow the machine’s BLAS. - A pinned corpus of real package test suites from a CRAN mirror supports package
compatibility work. It exposed a segfault when
[[fell back after an S4 generic found no method, andoptions(expressions = )having no effect; both are fixed.
Known limitations
Section titled “Known limitations”- No macOS or Windows binaries. 0.4.3-beta has a Linux x86_64 archive only.
- The JIT on is still slower than off on 8 of the 10
bench-realworkloads, because the cost of the first compile is not yet amortized. ry Rstill needs GNU R, because it runs your code on GNU R itself.- Linear algebra on Windows needs GNU R. Windows has no system LAPACK, so
solve()and its relatives needR_HOMEnaming a GNU R installation.
ry 0.4.2-beta, Linux only
Section titled “ry 0.4.2-beta, Linux only”Released in November 2026 as a pre-release.
Version 0.4.2-beta starts faster, uses less memory in common cases and loads S4 packages in a fraction of the time. It ships Linux x86_64 binaries only: macOS and Windows users stay on 0.4.1-beta until a later release fixes those builds (Installation).
Highlights
Section titled “Highlights”- Start-up. On the benchmark machine an empty script runs in about 30 to 37 ms, against 119 to
143 ms on 0.4.1-beta, and
library(lattice)takes about 58 ms instead of 158 ms. The release also bundles all 15 recommended packages on Linux, solibrary(lattice)works without GNU R. - S4 packages load lazily. Each held-back S4 generic runs at its first use, and the S4 cache on
disk is gone. On a synthetic S4-heavy package the first
new()takes 80 to 87 ms instead of 0.36 to 0.40 s. - Frames are released at return, and closure calls take their arguments from an arena, which keeps the peak memory of call-heavy programs lower.
- Faster vector code.
[[<-and[<-grow vectors in place, matrix sub-assignment has its own bytecode, the JIT reads and stores matrix elements natively, regular expressions run on PCRE2 directly, andtextConnection()is implemented natively. - Typed code uses less memory. Typed list programs stay near GNU R’s peak, and an empty typed list keeps the item type the checker gave it.
- Packages build in parallel, and
.libPaths()includes GNU R’s user and site libraries. Stable hashes of base R functions ignore srcrefs.
Measured against 0.4.1-beta
Section titled “Measured against 0.4.1-beta”The untyped benchmark programs of the Benchmarks page, best of 3 runs on a 4-core
Xeon at 2.1 GHz, give identical results on both releases. Warm times differ by at most 10 percent
(array_map 0.030 s to 0.033 s, fib 5 ms to 6 ms), and bond_book (0.416 s to 0.267 s), drawdown
(0.037 s to 0.029 s) and array_sum (0.022 s to 0.018 s) are faster. The start-up peak of an empty
script with stats attached is about 6 MiB higher (38.8 MiB to 45.0 MiB), and the peak of
array_map, closures, loop_sum, validate, vector_arith, sales and vasicek is 2 to 44 MiB lower,
while array_dot, array_filter, array_sum, bond_book, expr_tree, fib, log_rank, orders and report are 4 to 8 MiB higher
and drawdown is 15 MiB higher.
Also in this release
Section titled “Also in this release”- ry needs no GNU R to run R.
ry run,ry load,ry test,ry documentandry installuse a build of base R 4.6.2 that ships insidery, soR.versionreports R 4.6.2. SetR_HOMEto a GNU R installation to emulate that release instead (Installation). - Typed code runs on native values. A typed function in strict mode compiles before its first call to native code over numbers, strings and lists, so typed programs that build strings or call local functions run 10 to 120 times faster than on GNU R (Benchmarks).
- S4 definitions run natively.
setClass(),setGeneric(),setMethod()(also on primitives such aslength),setClassUnion(),methods::cacheMetaData()and inherited single-argument dispatch run in Rust for the shapes packages usually write, with results identical to the methods package’s R code. A loaded package’s S4 generics run at their own first use, so on a generated package with 2,892 S4 definitions the firstnew()after a cold load takes about 85 ms instead of about 6 s, with no S4 cache on disk. format()shows external pointers as GNU R does (<pointer: 0x…>), sostr()of a value that holds one, such as an S4 class definition, no longer fails with “Found no format() method”.
Known limitations
Section titled “Known limitations”- No macOS or Windows binaries. 0.4.2-beta has a Linux x86_64 archive only.
ry Rstill needs GNU R, because it runs your code on GNU R itself.- Linear algebra on Windows needs GNU R. Windows has no system LAPACK, so
solve()and its relatives needR_HOMEnaming a GNU R installation, whoseRblas.dllandRlapack.dllthey call.
ry 0.4.1-beta, on every platform
Section titled “ry 0.4.1-beta, on every platform”Released in November 2026 as a pre-release.
Version 0.4.1-beta ships ry with its runtime for Linux x86_64, macOS on Apple silicon and Windows
x86_64, loads large S4 packages much faster, and fixes the R incompatibilities that real package
test suites reported. The VS Code extension on the Marketplace is unchanged at 0.3.2, so set
ry.path to the new binary to use the runtime from VS Code (Installation).
Highlights
Section titled “Highlights”- macOS and Windows archives.
ry run,ry loadandry installwork on all three platforms, and the release workflow smoke-tests each archive against GNU R and a CRAN package before it publishes. - Large S4 packages load in well under a second once cached. On a generated package with
2,877 S4 definitions,
ry loadfollowed by the firstnew()takes about 0.75 s on a second run, against about 6.6 s before. Class unions andsetAsno longer stop ry from holding S4 definitions back until first use, and the cached definitions are restored lazily withoutmethods::cacheMetaData. sys.call()andsys.calls()no longer copy the arguments. Underdo.call()with a large argument they took about 0.1 s each, which made data.table’s[hundreds of times slower.
All changes
Section titled “All changes”- Regular expressions accept TRE’s
{+}quantifier. names<-dispatchesas.character, so Date and POSIXct names match GNU R.format(x, "%OS0")prints whole seconds.- An interrupt raised under
suspendInterrupts()stays pending until the next check. ry loadattaches testthat and sources the test helpers as pkgload does.ry testrunstest_*.Rfiles and filters on testthat’s context name.c()dropsNULLarguments before S4 dispatch, as GNU R does.nrows()andncols()acceptNULLand pairlists.round()andsignif()port GNU R’s algorithm, including the R 4.5.1 change, so they pick the same nearest double.- On Windows, paths split at both separators,
system()runs without a shell and honors its redirections, andR CMDputs Rtools first onPATH, soR CMD buildand package installs work.
ry 0.4.0-beta, the first release that runs R
Section titled “ry 0.4.0-beta, the first release that runs R”Released in November 2026 as a pre-release.
Version 0.4.0-beta adds ry’s own R runtime beside the checker, plus the language features that only that runtime runs.
Highlights
Section titled “Highlights”- Your R code runs faster. On the eleven programs on Why ry, ry’s runtime beats GNU
R on ten: 1.2 times faster on vectorized arithmetic, 5 to 7 times on loops over vectors, and 130
times on recursive
fib(0.01 s against 1.31 s).log_rank, which spends its time in builtins, runs at GNU R’s speed. Benchmarks has the code and the method. - Types reach run time. Inline annotations sit beside
#:comments, and ry’s runtime checks them at function boundaries. Strict mode rejects untyped code, andry check --annotatewrites the types it asks for. - Records, tuples, tagged unions and
matchmodel data with exhaustiveness checks, and typed code that uses them compiles to machine code at its first call. - One binary. A release archive holds
ryalone. The runtime is embedded in it and unpacked into your cache directory the first time you run code. - Package development is built in.
ry loadloads your package lazily,ry testruns its tests andry documentwrites its documentation, each a drop-in for the devtools command. DataFrameis a typed table that runs on the Polars engine, and the standard library (Result,List,Str,Dict,Setand more) now covers Roc’s builtins.
All changes
Section titled “All changes”ry run script.Rruns R on ry’s runtime, andry R script.Rruns the same script on GNU R. ry’s runtime still reads base R from your GNU R installation, so both need one.- Inline annotations such as
function(price: double) -> doublesit beside#:comments. ry’s runtime checks them at function boundaries, and GNU R runs the code with them erased. - Records, tuples, tagged unions and
match, checked for exhaustiveness, are ry’s recommended way to model data. DataFrameis a typed table with a Polars-style API that runs on the Polars engine.ry loadloads the package you are developing from source, lazily, and thery runandry Rconsoles reload what you edited before each command.ry check --fixapplies the safe fixes (TtoTRUE,=to<-, a trailing comma), and--unsafe-fixesalso applies spelling suggestions. The editor gets the same quick fixes plus a fix-all action, refactorings (extract a variable or a function, inline a variable, and move types between a#:comment and inline syntax), a call hierarchy, workspace symbol search, an outline with sections, folding, selection ranges, semantic highlighting and parameter-name hints.- More lints, including lintr’s.
equals-na,vector-logic,length-sequence,class-equalsandlength-testare on by default, each with an unsafe fix. Eleven more ported from lintr, such asscalar-in,order-subset,matrix-applyandnzchar, are available when you turn them on, likeredundant-returnandcommented-code(diagnostic codes). A project that is set up for lintr keeps its choices without ary.toml, because ry reads thelintersfield of its.lintrfile. ry check --annotatewrites the types strict mode asks for. It adds the inferred type of each unannotated top-level function and binding, then lists what is left to type by hand. The editor offers the same edit for one binding or a whole file (Moving a file to strict mode).ry fmt --rangeformats only the lines you name, the editor formats a selection or the line you just finished, andry fmtruns in parallel (Formatting).- Faster recursion and more of base R. A function that only does scalar arithmetic, such as
recursive
fib, compiles to frameless machine code (fib(30)takes 0.005 s against 0.9 s on GNU R), and sockets work, soparallel’s PSOCK clusters run. - A debugger and a console in VS Code.
F5runs the current script under a debugger with breakpoints, stepping and variable inspection, “Debug test” does the same for onetest_that()block, andCtrl+Entersends the selection to a ry console. Other editors can use the same debugger throughry debug-adapter. See Editors. - The editor attaches to a running console. “ry: Attach to Console” debugs the commands you type
in
ry run,browser()stops at aBrowse[1]>prompt that an editor can take over, “View Data” opens a paged, sortable and filterable table of a data frame, matrix orDataFrame, and hover and completion use the console’s live values. R chunks in R Markdown and Quarto documents get the language-server features too (Unix only for the console connection). - Named arguments navigate. Hover, go-to-definition, references and rename follow a named
argument to the parameter it fills, so renaming a parameter also rewrites
rate = 0.05at its call sites, andpkg::namegoes to the package’s stub or your own definition. - Faster loads.
ry loadbinds R6 class generators lazily and holds back S4 methods on other packages’ generics, so a session that never touches them skips their setup (package loading), and a strictry loadruns its check while the runtime starts and checks only the package’s own files, not its tests and scripts. ry testruns your package’s tests asdevtools::test()does. It loads the package lazily withry load, runs thetests/testthatfiles with testthat’s own reporters, and exits with1when a test fails. With--watch, every save reloads only the changed definitions, rebuilds compiled code after asrc/edit, and runs the test files the edit can reach first. It learns of saves from the operating system’s file notifications, as the consoles now do. On a 308,000-line benchmark package with 502 test files, the first file’s results arrive in about 2 s, against 62 s fordevtools::test()(CLI, Running tests).ry documentwrites documentation asdevtools::document()does. It runs roxygen2 against the lazily loaded package, and itsman/*.Rdfiles andNAMESPACEare byte for byte the same. It caches each file’s parsed blocks and runs roxygen2’s slowest steps in linear time, so on a benchmark package with 22,000 Rd files it takes about 2 minutes after an edit, against 21 for devtools (Writing documentation).ry loadfollowsdevtools::load_all()more closely.system.file()mapsinst/, testthat helpers are sourced, lazily defined functions keep their source references, a package that imports a reloaded one sees its new bindings,Encoding: latin1is honored, and a declaredS3method()with no function refuses the load with R’s message. Every load of a strict package is checked, including a reload in the console, which re-checks only what the edit changed. On ry’s runtime,src/compiles with ry’s own toolchain, andifblocks inNAMESPACEare evaluated as GNU R evaluates them (package loading).- Help works on ry’s runtime.
?mean,help("mean"),help(package = "stats")andhelp.start()print or serve R’s help pages, HTML help included, as GNU R does (Console). - The editor follows
$fields and installed packages. Go-to-definition, hover, references and rename resolvex$namethrough the values that builtx: lists, data frames, records and R6 classes, includingself$andprivate$. Rename refuses a field it cannot trace completely. For a package without a ry stub, definition and hover read the installed package’s code and help without running R (Editors). Renaming a package-levelthealso renames its uses afterthe$x <- vinside a function, where R works on a local copy. - Completion and signature help work on untyped code. Completion ranks names by how often the
project uses them, with locals first, and a package without a ry stub completes the exports in its
installed
NAMESPACE. Signature help covers untyped functions, installed packages and R6 methods called throughself$, and an unresolved name that a package exports gets the quick fixes “Qualify aspkg::name” and, in a script, “Addlibrary(pkg)”. A function literal shows its inferred signature as an inlay hint, member names such asx$field,x@slotand R6 members are highlighted, and the outline lists S4 slots and a type’s tags. - Fewer false reports on real packages. Inferred signatures now carry facts about the callee’s
body, such as a return chosen by a flag default or a parameter read only through
substitute(). Names injected into R6 and Reference Class methods (self,private,.self) resolve, a literalsource("file.R")is followed, andwith,subsetandtransformmask their column arguments. With typing on, the corpus packages’R/sources report 51 errors, down from 98, and about 26 of those are real package bugs. The generated benchmark packages report nothing. - Graphics draw as GNU R does. A gallery of 149 figures (base graphics with
persp, contours, dendrograms and plotmath, grid, lattice, ggplot2 and PerformanceAnalytics charts) renders on every device, and 146 of them match GNU R pixel for pixel on ragg. Onpdf(),svg()and the bitmap devices, gradients, tiling patterns, clipping paths, masks, compositing groups and even-odd fills work, andpostscript()refuses them as GNU R’s device does. knitr and rmarkdown documents with plot chunks render on ry. DataFramechecks column types and handles bigger data. Arithmetic or comparison on a text column is a type error on the column reference. Reading a CSV no longer holds the parsed file next to its columns, so a 1e8-row group-by run fits in 15 GB. data.table’sdt[i]runs on data.table’s own code again, which uses less memory. From data.table mapsdt[i, j, by],:=, joins andfreadtoDataFrameverbs, and the opt-in[lint] data-tablesetting marks data.table calls and links to it.- Typed code compiles at its first call. A closure whose parameters and return are annotated
compiles from its signature instead of after warm-up. Records, tuples, tags and guarded
matchcompile natively too, and a variable that is an integer on one path and a double on another stays unboxed. A fold over 200 tag-union records five times takes 0.05 to 0.1 s, against 0.4 to 0.7 s on GNU R for the same program written withlist(kind = ). In compiled code,List.walk,List.map,List.keep_if,List.drop_if,List.any,List.allandList.count_ifrun as native loops with the callback inlined: walking a 100-element list 10,000 times takes 0.009 s, against 0.36 s with the JIT off and 0.94 s forReduceon GNU R. - Faster everyday R on ry’s runtime.
switchcompiles to bytecode, a closure call makes one collection check for its whole frame, small objects are allocated by bumping a pointer, andx[[i]] <- von a plain local vector inside a function writes in place, and S3 dispatch caches its method lookups. Base R’s kernels, such asmatch,order,split,strsplit,table,merge,aggregateandcumsum, run at or below GNU R’s time at 1e7 rows;applyover rows is still about 1.4 times slower. - The standard library is complete against Roc’s builtins.
Dict.with_capacityandSet.with_capacityare new, andreservenow works on an emptyDictorSet(standard library).List.rangeandList.repeatstop with an error past 2,147,483,647 elements. - Lower memory, faster cold checks. Large vectors are collected sooner, strings are interned in
a flat table, and
as.character()of a long number vector is deferred as on GNU R, so peak memory on string-heavy code is within 1.1 times GNU R’s.1:n,seq_len(n)andseq_along(x)with over a million elements are compact, soseq_len(2^31 - 1)no longer allocates 8 GB.gc()reports real cell counts, andgc.time()andgcinfo()work. The parser now builds ry’s own flat syntax tree, and a cold check keeps one parse tree per worker, sory check --no-cacheon the 300,000-line benchmark code bases takes about 1.2 s on 4 cores and peaks under 300 MiB. - More packages pass their own tests. ry’s runtime passes the tests of 155 of the 164 packages
that GNU R passes (94.5%), among them rlang, purrr, vctrs, R6, Matrix, S7, pkgload, shiny, readr
and git2r, and 35 of GNU R’s own 66
tests/*.Rscripts print exactly what they print on GNU R. The optimizers and integrators behindoptimandintegrate(L-BFGS-B, UNCMIN, QUADPACK and the interval search) are now written from scratch and match GNU R’s results. A session uses one temporary directory, removed when it exits. - Linear algebra works on NixOS. BLAS and LAPACK are also looked up in the directories GNU R’s
etc/Makeconfrecords, and packages that ry installs link the same libraries (Installation). - Seeded harnesses cover more of ry: the help server, makefile expansion in
R CMD, the JIT, reloads, the debugger’s message framing, CSV reading and rendered graphics files. The bugs they found are fixed, and an unclosed quote in a CSV file is now an error.
Installing
Section titled “Installing”This release has one archive, for Linux x86_64: ry-x86_64-unknown-linux-gnu.tar.gz. It holds the
single ry binary, with ry’s runtime built in, and needs glibc 2.35 or newer. macOS and Windows
archives, and a VS Code extension that bundles the new binary, follow in a later release.
Installation shows how to install the archive and what to use on other platforms.
Known limitations
Section titled “Known limitations”- ry’s runtime still needs GNU R, version 4.3 or later built as a shared library, because it
reads base R’s sources and the default packages from that installation.
ry check,ry fmtandry serverneed no R. - Linux x86_64 only. This release has no macOS or Windows archive. The VS Code extension on the Marketplace is still 0.3.2, which bundles 0.3.2-beta without ry’s runtime and has none of the debugger and console features above. The Windows runtime has run only under Wine so far.
- Peak memory is often higher than GNU R’s. On the benchmark programs, ry uses more memory on
eight of eleven, up to 1.8 times as much (
drawdown, 133 MiB against 73 MiB). - Not every package passes its tests yet: 9 of the 164 packages that pass on GNU R still fail on
ry’s runtime, and
applyover rows is about 1.4 times slower than on GNU R.
Licence
Section titled “Licence”ry 0.3 was UPL-1.0 throughout. Parts of ry’s runtime translate GNU R’s own C code, so the ry
binary and the crates behind the runtime are now GPL-2.0-or-later, like GNU R. The tooling crates
(the parser, the checker, the formatter and the editor features) stay UPL-1.0, the C headers that
packages compile against are LGPL-2.1-or-later as R’s are, and the VS Code and Zed extensions are
MIT. Licensing has the details, including why the binary as a whole is
passed on under GPL-3.0-or-later.
ry 0.3.0, a complete rewrite
Section titled “ry 0.3.0, a complete rewrite”Released in July 2026 as a pre-release.
Version 0.3.0 replaces the previous implementation end to end, with a new parser, a new analysis engine, and a static type checker, the first one for R.
- The project is renamed from Roughly to ry. The binary is
ry, the configuration file isry.toml, and a suppression comment reads# ry: allow(...). The crate is published asry-lang. - R gets a static type checker, new and experimental: Hindley-Milner inference with numeric
constraints and generics, guided by
#:annotation comments. Type errors are opt-in through[check] typing, but hover, completion, signature help, and inlay hints use the inferred types either way. - The R parser is hand-written. It builds lossless syntax trees, recovers from broken input, and produces precise diagnostics that feed straight into the analysis, so one mistake no longer hides the findings in the rest of the file.
- The analysis engine is incremental. A memoized query core rechecks only what an edit could have affected, and incremental results are verified to be byte-identical to an analysis from scratch.
- The standard library has type stubs. Declaration-only
.Rtypesstubs for base, stats, utils, and methods ship inside the binary, and a project can override any of them. - The editor features run on the new analysis: hover, completion, go-to-definition, references,
rename, document and workspace symbols, inlay hints, signature help, and semantic highlighting of
#:annotations. - ry ships an R console.
ry replandry runload your system R (they are the only commands that do), and completion in the console is backed by the project analysis.
Binaries are on GitHub Releases, and the VS Code extension is on the Marketplace.