commit | fd44608629c9fbd218acf7d79e81086720dbc4e3 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Sat Oct 03 09:01:43 2020 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Sat Oct 03 09:01:43 2020 -0400 |
tree | 4660f0798f7978ca9412e99cd408babf2fab2a71 | |
parent | b2dfc04a072fec12008de82e3655abfc0e022c88 [diff] |
added interactive and rstudio check back
diff --git a/R/print.R b/R/print.R index 61193df..95a37c0 100644 --- a/R/print.R +++ b/R/print.R
@@ -1,7 +1,7 @@ #' @export print.kableExtra <- function(x, ...) { view_html <- getOption("kableExtra_view_html", TRUE) - if (view_html) { + if (view_html & interactive() & rstudioapi::isAvailable()) { dep <- list( rmarkdown::html_dependency_jquery(), rmarkdown::html_dependency_bootstrap(theme = "cosmo"),