The R package {rextendr} is used to simplify the scaffolding of extendr projects as well as document Rust functions and objects. Install the development version of {rextendr} to have the most up to date changes.
# install pak if not availableif (!requireNamespace("pak")) install.packages("pak")# install development version of rextendrpak::pak("extendr/rextendr")
Rust
Next, ensure that you have Rust installed. extendr has a minimum supported Rust version (msrv) of 1.64. Follow the rustup installation instructions to install Rust.
Tip
If you are using Windows, you will also need to install the stable-x86_64-pc-windows-msvc toolchain. From your terminal run the following
Once you have VS Code, or another text editor, installed you will need the rust-analyzer. The rust-analyzer will provide type hinting and auto-completion suggestions. It is very helpful!