Macro extendr_api::global[][src]

macro_rules! global {
    ($($tokens: tt)*) => { ... };
}

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);
}