Installation
Get setup for development with extendr.
Note
Required software
Rust [docs]
Follow the rustup installation
instructions to install Rust. Note
that the current minimum supported Rust version (msrv) in extendr is
1.65.0. This is to ensure CRAN compliance. Windows users will
also need to install the GNU toolchain as it matches Rtools. This can be done
via rustup in the terminal: rustup target add x86_64-pc-windows-gnu.
rextendr [docs]
The R package rextendr will help you setup the necessary scaffolding for
extendr projects. It also provides tools for documenting Rust functions and
objects. To install the release version, use install.packages("rextendr"). For
the development version, use pak::pak("extendr/rextendr"). You can then run
rextendr::rust_sitrep() to check your Rust installation.
Recommended software
rust-analyzer [docs]
While this is optional, we cannot recommend it enough. If you use Visual Studio Code (VS Code) or a similar IDE, the rust-analyzer will provide you type hinting and auto-completion suggestions. It is very helpful!