engine_rust | R Documentation |
Set Rust engine for knitr
engine_rust(options) set_rust_engine()
options |
Options passed to code chunk |
If dependencies are needed they should be defined in a 'cargo.toml' file in the working directory and the code chunk option 'toml=TRUE' should be set.
Additional options:
Time (in seconds) to wait for program to finish
Environment to execute code
Adapted from https://greenwood.dev/2019/12/22/running-rust-in-rmd/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.