parse_only: Parse R code and do not keep the source

Description Usage Arguments Value Examples

View source: R/utils.R

Description

An abbreviation of parse(keep.source = FALSE).

Usage

1
parse_only(code)

Arguments

code

A character vector of the R source code.

Value

R expressions.

Examples

1
2
3
4
library(xfun)
parse_only("1+1")
parse_only(c("y~x", "1:5 # a comment"))
parse_only(character(0))

yihui/xfun documentation built on Oct. 25, 2018, 11:44 p.m.