R: Parse R code and do not keep the source

parse_only {xfun} | R 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))

[Package xfun version 0.29 Index]