Macro extendr_api::global
source · [−]macro_rules! global {
($($tokens: tt)*) => { ... };
}
Expand description
Get a global variable.
Variables with embedded “.” may not work.
use extendr_api::prelude::*;
test! {
// The "iris" dataset is a dataframe.
assert_eq!(global!(iris)?.is_frame(), true);
}