Description Usage Arguments Details Value Examples
View source: R/extendr-wrappers.R
Demonstrates passing a double vector back and forth between R and Rust, multiplies each element by 10 in Rust to prove it works.
1 |
f |
A double (float) vector to treat as an extendr_api::Real in Rust |
The vector passed to this function must be a double vector (default numeric
vector type in R) or an NA_real_. The Rust function signature is
fn pass_multiple_doubles_fn(f: Real) -> Real
. NA's, NaN's, Inf's, and
-Inf's are handled implicitly by the f64 specification.
f * 10
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.