An abbreviation of parse(keep.source = FALSE)
.
Arguments
- code
A character vector of the R source code.
Examples
library(xfun)
parse_only("1+1")
#> expression(1 + 1)
parse_only(c("y~x", "1:5 # a comment"))
#> expression(y ~ x, 1:5)
parse_only(character(0))
#> expression()