parse_only: Parse R code and do not keep the source

View source: R/utils.R

parse_onlyR Documentation

Parse R code and do not keep the source

Description

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

Usage

parse_only(code)

Arguments

code

A character vector of the R source code.

Value

R expression()s.

Examples

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

xfun documentation built on Nov. 1, 2024, 1:06 a.m.