This has the possibility to save output in a log file, and saving also session information.
renderFile(input, encoding = "UTF-8", params = NULL, logFile = NULL, ...)
Output of the function with additional attribute: 'sessionInfo' containing the details of the session information. If the report fails, an error message is returned.
Input file to be rendered.
String with encoding, 'UTF-8' by default.
List with input parameters for this document.
These parameters should be accessed in the Rmd document via
params$...
.
These parameters will be saved to a RDS file and imported
during the report rendering.
(optional) String with path to a log file, where output (also error/messages/warnings) should be stored. If specified, the entire output is re-directed to this file.
Any extra parameters passed to render
,
for expert use only.
Laure Cougnaud
Note: this function is inspired from xfun::Rscript_call