% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format-methods.R
\name{format.livelink}
\alias{format.livelink}
\alias{format.webr_link}
\alias{format.webr_project}
\alias{format.webr_exercise}
\alias{format.webr_directory}
\alias{format.webr_decoded}
\alias{format.webr_decoded_batch}
\alias{format.webr_preview}
\alias{format.shinylive_link}
\alias{format.shinylive_project}
\alias{format.shinylive_directory}
\alias{format.shinylive_decoded}
\alias{format.shinylive_decoded_batch}
\alias{format.shinylive_preview}
\title{Format a livelink object as a character vector}
\usage{
\method{format}{webr_link}(x, ...)

\method{format}{webr_project}(x, ...)

\method{format}{webr_exercise}(x, ...)

\method{format}{webr_directory}(x, ...)

\method{format}{webr_decoded}(x, ...)

\method{format}{webr_decoded_batch}(x, ...)

\method{format}{webr_preview}(x, ...)

\method{format}{shinylive_link}(x, ...)

\method{format}{shinylive_project}(x, ...)

\method{format}{shinylive_directory}(x, ...)

\method{format}{shinylive_decoded}(x, ...)

\method{format}{shinylive_decoded_batch}(x, ...)

\method{format}{shinylive_preview}(x, ...)
}
\arguments{
\item{x}{A livelink object (a link, project, exercise, directory, decoded
result, batch, or preview).}

\item{...}{Passed to the object's \code{\link[=print]{print()}} method, so preview-specific
options such as \code{show_content} work here too.}
}
\value{
A character vector of formatted lines.
}
\description{
Returns an object's printed representation as a character vector, one element
per line, so it can be captured, logged, pasted into a report, or otherwise
reused. \code{\link[=print]{print()}} renders the very same content to the console; \code{format()}
hands it back to you instead.
}
\examples{
link <- webr_repl_link("plot(1:10)")
format(link)
writeLines(format(link))

}
