-
-
Notifications
You must be signed in to change notification settings - Fork 877
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
\name{engine_output} | ||
\alias{engine_output} | ||
\title{An output wrapper for language engine output} | ||
\usage{ | ||
engine_output(options, code, out, extra = NULL) | ||
} | ||
\arguments{ | ||
\item{options}{a list of chunk options (usually this is just the object | ||
\code{options} passed to the engine function; see | ||
\code{\link{knit_engines}})} | ||
|
||
\item{code}{the source code of the chunk, to which the output hook | ||
\code{source} is applied, unless the chunk option \code{echo == FALSE}} | ||
|
||
\item{out}{the text output from the engine, to which the hook \code{output} | ||
is applied, unless the chunk option \code{results == 'hide'}} | ||
|
||
\item{extra}{any additional text output that you want to include} | ||
} | ||
\value{ | ||
A character string generated from the source code and output using | ||
the appropriate output hooks. | ||
} | ||
\description{ | ||
If you have designed a language engine, you may call this function in the end | ||
to format and return the text output from your engine. | ||
} |