Function extendr_api::functions::parse[][src]

pub fn parse(code: &str) -> Result<Robj>

Parse a string into an R executable object

use extendr_api::prelude::*;
test! {
   let expr = parse("1 + 2").unwrap();
   assert!(expr.is_expr());
}