extendr_api::functions

Function parse

Source
pub fn parse(code: &str) -> Result<Expressions>
Expand description

Parse a string into an R executable object

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