% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rthis.R
\name{r}
\alias{r}
\title{Turn an R expression into a shell \verb{R -e '...'} call}
\usage{
r(code)
}
\arguments{
\item{code}{an R expression (captured unevaluated) to wrap.}
}
\value{
a length-1 character string of the form \verb{R -e '...'},
shell-quoted with \code{\link[base:shQuote]{base::shQuote()}}.
}
\description{
Captures an R expression unevaluated and renders it as a single
shell-quoted \verb{R -e '...'} string, suitable for a \link{Dockerfile}
\verb{$RUN()} directive.
}
\examples{
r(print("yeay"))
r(install.packages("plumber", repos = "https://cloud.r-project.org"))
}
