extendr_macros

Macro R

Source
R!() { /* proc-macro */ }
Expand description

Execute R code by parsing and evaluating tokens.

    R!("c(1, 2, 3)");
    R!("{{(0..3).collect_robj()}} + 1");
    R!(r#"
      print("hello")
    "#);