Skip to content

Commit 75baada

Browse files
authored
Merge pull request #125 from Yu-Group/fix-rmd-thumbnails
fix rmd thumbnails
2 parents de5b719 + d461db4 commit 75baada

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inst/rmd/results_pretty.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ header-includes:
88
- \usepackage{gensymb}
99
output:
1010
vthemes::vmodern:
11+
thumbnails: false
1112
css: css/simchef.css
1213
params:
1314
author:
@@ -310,7 +311,7 @@ showResults <- function(dir_name, depth, base = FALSE, show_header = TRUE,
310311
cat(sprintf(plt_template, plt_name))
311312
}
312313
plt <- plts[[plt_name]]
313-
if (inherits(plt, "plotly")) {
314+
if (inherits(plt, "plotly") | inherits(plt, "gg") | inherits(plt, "ggplot")) {
314315
add_class <- c("panel panel-default padded-panel")
315316
} else {
316317
add_class <- NULL

0 commit comments

Comments
 (0)