pub fn global_var<K: Into<Robj>>(key: K) -> Result<Robj>
Expand description

Get a global variable from global_env() and ancestors. If the result is a promise, evaulate the promise.

See also global_var().

use extendr_api::prelude::*;
test! {
   let iris = global_var(sym!(iris))?;
   assert_eq!(iris.len(), 5);
}