logo
pub fn base_env() -> Environment
Expand description

The base environment; formerly R_NilValue

use extendr_api::prelude::*;
test! {
    global_env().set_local(sym!(x), "hello");
    assert_eq!(base_env().local(sym!(+)), Ok(r!(Primitive::from_string("+"))));
}