| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/utils.R |
| 3 |
\name{parse_only} |
| 4 |
\alias{parse_only} |
| 5 |
\title{Parse R code and do not keep the source} |
| 6 |
\usage{ |
| 7 |
parse_only(code) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{code}{A character vector of the R source code.} |
| 11 |
} |
| 12 |
\value{ |
| 13 |
R \code{\link[=expression]{expression()}}s. |
| 14 |
} |
| 15 |
\description{ |
| 16 |
An abbreviation of \code{parse(keep.source = FALSE)}. |
| 17 |
} |
| 18 |
\examples{ |
| 19 |
library(xfun) |
| 20 |
parse_only("1+1") |
| 21 |
parse_only(c("y~x", "1:5 # a comment")) |
| 22 |
parse_only(character(0)) |
| 23 |
} |