Skip to content

Commit

Permalink
set DT.fillContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Oct 22, 2023
1 parent 803191d commit 4565b49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/resources/rmd/execute.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ execute <- function(input, format, tempDir, libDir, dependencies, cwd, params, r
do.call(options, r_options)
}

# set DT.fillContainer for dashboards
if (is_dashboard_output(format$pandoc$to) &&
is.na(getOption("DT.fillContainer", NA))) {
options(DT.fillContainer = TRUE)
}

# get kntir options
knitr <- knitr_options(format, resourceDir, handledLanguages)

Expand Down

0 comments on commit 4565b49

Please sign in to comment.