- x
A character vector containing the names (no extension) of
the .Rmd
files to convert if they are in the current working
directory, or paths to the files, either absolute or relative to the
current working directory, e.g., DIRECTORY/file1
. The output
files are created in the same directory as their respective .Rmd
file.
- outputs
A character vector. Specifies the output formats required.
A subset of c("word", "ioslides", "slidy", "html")
. If more than one of
"ioslides"
, "slidy"
and "html"
are present then only
one of these is used with the order of preference "ioslides"
,
"slidy"
then "html"
.
- slide_level
Passed to rmd2ioslides
via
...
. The default slide_level = 1
means that a level one header #
create a new non-segue slide for an ioslides presentation.
- css
The argument css
passed to
ioslides_presentation
or
slidy_presentation
. If css = "black"
then accessr
's css file black.css
is used, which results in
black text being used in the slides.
css
is not used if outputs = html
.
- add18
A logical scalar. If TRUE
then we also create Word documents
with 18pt text.
- pdf
A logical scalar. If TRUE
then we use
chrome_print
to print PDF versions of HTML
files produced using the output "ioslides"
or "slidy"
. and/or
OfficeToPDF.exe
to create PDF files from any Word documents that
are produced.
- highlight
A named list, with names a subset of
c("word", "ioslides", "slidy")
, providing the respective syntax
highlighting styles passed to Pandoc for the output formats. Any syntax
highlighting provided in css
will take precedence.
highlight
is not used if outputs = html
.
- params
A list of named parameters to pass as the argument
params
to render
. In the example below,
the file example.Rmd
has a parameter hide
. If hide = TRUE
then
parts of the output are hidden using the knitr
chunk options echo
and
eval
.
- zip
A logical scalar or character vector indicating whether PDF
files should be put into a zip archive. If zip = FALSE
then no
zip archive is created. Otherwise, an archive is created in each unique
directory involved in x
. If zip = TRUE
then any archive
created is named after the first filename in x
from the relevant
directory. If zip
is a character vector of zip file names (no
extension) then these names are used to name the zip archives. The names
are recycled to the length of the number of unique directories if
necessary.
- ...
Additional arguments to be passed to
rmd2ioslides
,
rmd2slidy
,
rmd2word
or
rmd2html
.