View source: R/output_rendered.R
output_rendered | R Documentation |
Render an rmarkdown file, save the result file and eventually display the output in the browser or send the output to one or more email recipients.
output_rendered(
input,
output_file,
output_dir = tempdir(),
intermediates_dir = tempdir(),
params,
display = FALSE,
email = FALSE,
from = NULL,
to = NULL,
subject = NULL,
email_text = NULL,
...
)
input |
[ |
output_file |
[ |
output_dir |
[ |
intermediates_dir |
[ |
params |
[ |
display |
[ |
email |
[ |
from |
[ |
to |
[ |
subject |
[ |
email_text |
[ |
... |
Other arguments to be passed to
|
The input to the argument params
should be a list with
parameters that is used by the rmarkdown document. The parameters must
have been defined in the YAML-section of the rmarkdown document.
The default behaviour is to save the resulting html-file in the
temporary directory. To save the result in a permanent file, use a
permanent directory as input to output_dir
.
The output can only be displayed in a browser or the R studio viewer in an interactive session. If you chose to display the output in the R studio viewer, but it is not an R studio session, the output will instead be output in the browser.
An email with the results file can be sent to one or more recipients.
None. Render a rmarkdown file and either saves, emails or displays it in the browser.
Petter Hopp Petter.Hopp@vetinst.no
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.