Description Usage Arguments Details Value Examples
View source: R/extendr-wrappers.R
Demonstrates passing a character (string) vector back and forth between R and Rust, uppercasing the string in Rust to prove it works.
1 |
s |
A character vector to treat as strings in Rust |
The vector passed to this function must be contain character values. The Rust
function signature is pass_multiple_characters_fn(s: Vec<String>) -> Vec<String>
.
extendr_api(v0.2.0) current does not support a method (I could find) for
passing character vectors with NA's, so NA handling will need te be managed
on the R side for now.
toupper(s)
1 | pass_multiple_characters(c("hello", "world")) # c("HELLO", "WORLD")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.