Skip to content

Commit

Permalink
Fix #154: pandoc warning during exercise knit
Browse files Browse the repository at this point in the history
Fixes this warning:

[WARNING] This document format requires a nonempty <title> element.
  Please specify either 'title' or 'pagetitle' in the metadata.
  Falling back to 'exercise.knit.utf8'
  • Loading branch information
jcheng5 committed Mar 26, 2018
1 parent 6feaf64 commit ffb22f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/exercise.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ evaluate_exercise <- function(exercise, envir) {
knitr = knitr_options,
pandoc = NULL,
base_format = rmarkdown::html_fragment(
df_print = exercise$options$exercise.df_print
df_print = exercise$options$exercise.df_print,
pandoc_args = c("--metadata", "pagetitle=PREVIEW")
)
)

Expand Down

0 comments on commit ffb22f1

Please sign in to comment.