% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paintr-render.R
\name{ptr_render}
\alias{ptr_render}
\title{Render a typed tree back to R source code}
\usage{
ptr_render(node, preserve_placeholders = FALSE)
}
\arguments{
\item{node}{Typed tree root (or any node) to render.}

\item{preserve_placeholders}{If \code{FALSE} (default), placeholder nodes are
assumed to have been replaced by literal nodes during substitution and are
rendered as today (\code{expr_text(node$expr)} as a fallback). If \code{TRUE}, any
surviving placeholder node is emitted as \code{ppX(current_pick)} -- the
round-trippable "formula with placeholders" view. The keyword and
\code{current_pick} are read directly from the node; tests in this layer stub
them by hand.}
}
\value{
Character scalar of R source code.
}
\description{
Render a typed tree back to R source code
}
\keyword{internal}
