Description Usage Arguments Details See Also Examples
This returns a function which can be passed as the page argument to
a Stage object. When the page is shown knit will be called
on filename. The variables id, period, params
and error will be available within the knitr file. params is
a named list of HTML parameters. error is a character vector of errors,
e.g. from a form submission. Typically it will be character(0).
1 | b_knit(filename)
|
filename |
Path of the file to knit |
By default the following options are set: echo=FALSE, cache=FALSE,
warning=FALSE, message=FALSE for opts_chunk; and
out.format="html", progress=FALSE, upload.fun = image_uri for
opts_knit. The last option means that images will be shown encoded as
"data URIs" in the document itself.
Other page creation: b_brew
1 2 3 4 | ## Not run:
text_stage(page=b_knit("myknitfile.Rhtml"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.