xfun (version 0.43)

parse_only: Parse R code and do not keep the source

Description

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

Usage

parse_only(code)

Value

R expression()s.

Arguments

code

A character vector of the R source code.

Examples

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

Run the code above in your browser using DataLab