Skip to content

Commit

Permalink
support slide_level in slidy_presentation(): https://stackoverflow.co…
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Dec 19, 2019
1 parent 0a10565 commit 07b238c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ rmarkdown 2.1

- Ensure the `tempdir()` exists (via `tempdir(TRUE)`) when writing HTML dependencies to a temporary file, because this directory might be erased by accident (thanks, Kurt Hornik, and also @karawoo #1743).

- Added the `slide_level` argument to `slidy_presentation()` (https://stackoverflow.com/q/59157211/559676).


rmarkdown 2.0
================================================================================
Expand Down
5 changes: 5 additions & 0 deletions R/slidy_presentation.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#' }
#' @export
slidy_presentation <- function(incremental = FALSE,
slide_level = NULL,
duration = NULL,
footer = NULL,
font_adjustment = 0,
Expand Down Expand Up @@ -74,6 +75,10 @@ slidy_presentation <- function(incremental = FALSE,
if (incremental)
args <- c(args, "--incremental")

# slide level
if (!is.null(slide_level))
args <- c(args, "--slide-level", slide_level)

# duration
if (!is.null(duration))
args <- c(args, pandoc_variable_arg("duration", duration))
Expand Down
7 changes: 7 additions & 0 deletions man/slidy_presentation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 07b238c

Please sign in to comment.