macro_rules! sym { ($($tokens: tt)*) => { ... }; }
Expand description
The sym! macro install symbols. You should cache your symbols in variables as generating them is costly.
use extendr_api::prelude::*;
test! {
let wombat = sym!(wombat);
assert_eq!(wombat, r!(Symbol::from_string("wombat")));
}