Runs input files through Quarto, and allows Quarto to work with full paths (where Quarto itself requires relative paths). This function essentially replaces both rmarkdown::render()
and quarto::quarto_render()
.
render(input_file, output_file = NULL, quiet = TRUE, as_job = "auto", ...)
knit(input_file, output_file = NULL, quiet = TRUE, as_job = "auto", ...)
file to be rendered, can be R Markdown (.Rmd
) or Quarto (.qmd
), or a lot of other formats such as .md
, .ipynb
and many other formats that Quarto supports.
Base name for single-file output (e.g. PDF, ePub, MS Word).
This sets the output-file
Quarto metadata. If NULL
, the output filename
will be based on the input filename.
Suppress warning and other messages, from R and also Quarto CLI
(i.e --quiet
is passed as command line).
quarto.quiet
R option or R_QUARTO_QUIET
environment variable can be used to globally override a function call
(This can be useful to debug tool that calls quarto_*
functions directly).
On Github Actions, it will always be quiet = FALSE
.
Render as an RStudio background job. Default is "auto"
,
which will render individual documents normally and projects as
background jobs. Use the quarto.render_as_job
R option to control
the default globally.
other arguments passed on to quarto::quarto_render()
.
Functions knit()
and render()
are identical.