Skip to contents

This is essentially a wrapper for a call to base::parse() wrapped in a call to base::eval().

Usage

parse_fragment_R(...)

Arguments

x

The fragment.

Value

The object with the results.

Examples

### Parse some R
bookmark::parse_fragment_R("
  result <- sqrt(9);
  anotherResult <- result^2;
"
);
#> $anotherResult
#> [1] 9
#> 
#> $result
#> [1] 3
#>