This is a template package to demonstrate how to call Rust from R using the extendr-api crate.
Before you can install this package, you need to install a working Rust toolchain. We recommend using rustup.
On Windows, you'll also have to add the i686-pc-windows-gnu
and x86_64-pc-windows-gnu
targets:
rustup target add x86_64-pc-windows-gnu
rustup target add i686-pc-windows-gnu
Once Rust is working, you can install this package via:
remotes::install_github("extendr/helloextendr")
After installation, the following should work:
library(helloextendr)
hello()
#> [1] "hello"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.