- 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 .html
files are created in the same directory as their respective .Rmd
file. If x
is missing then an html file is created from each of
the .Rmd
files in the current working directory.
- zip
A logical scalar or character vector indicating whether html
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 has the name accessr_slidy.zip
. 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.
- pdf
A logical scalar. If pdf = TRUE
then each html file is
printed to a PDF file using chrome_print
.
Google Chrome (or an alternative browser specified in pdf_args
by
the browser
argument to chrome_print
must
be installed prior to use of this option. An error message like
Error in servr::random_port(NULL) : Cannot find an available TCP
port
means that the random_port
function in the servr
package could not find an internet connection that Chrome considers
secure. Perhaps you are using a coffee shop's wifi.
- zip_pdf
As zip
, but relates to the
creation of zip archives for any PDF files created. If
zip_pdf = TRUE
then each archive is named
accessr_html_pdf.zip
.
- pdf_args
A list of arguments passed to
chrome_print
. input
cannot be passed
because it is set inside rmd2html
.
- add
A logical scalar that determines what happens if the output
zip file already exists. If add = TRUE
then files are added to the
zip file and if add = FALSE
then the zip file is deleted and will
only contain newly-created files.
- quiet
Argument of the same name passed to
render
to determine what is printed during
rendering from knitr.
- rm_html
A logical scalar. If rm_html = TRUE
and a zip archive
of html files is produced then the individual html files are deleted.
Otherwise, they are not deleted.
- rm_pdf
A logical scalar. If rm_pdf = TRUE
and a zip archive
of pdf files is produced then the individual pdf files are deleted.
Otherwise, they are not deleted.
- inc_rmd
A logical scalar. If inc_rmd = TRUE
then the source
Rmd files are included in the zip file created. Otherwise, they are not
included.
- params
A list of named parameters to pass as the argument
params
to render
.
- ...
Additional arguments passed to
slidy_presentation
.
If css = "black"
is passed then accessr
's css file
black.css
is used, which results in black text being used in the
slides.
This function is not vectorised with respect to arguments in
...
.