Function extendr_api::functions::eval_string [−][src]
pub fn eval_string(code: &str) -> Result<Robj>
Parse a string into an R executable object and run it.
use extendr_api::prelude::*; test! { let res = eval_string("1 + 2").unwrap(); assert_eq!(res, r!(3.)); }