commit | 5776154eaf98ec8bae008d95136a8863e27c14a9 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Mon Mar 26 16:32:56 2018 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Mon Mar 26 16:32:56 2018 -0400 |
tree | 55c258c97bd92f498686ac65913d8d59c9e1f522 | |
parent | 5b71b2da622bcce64133d83b8c126201d5d86de0 [diff] [blame] |
typo
diff --git a/R/print.R b/R/print.R index 13e8568..279dee7 100644 --- a/R/print.R +++ b/R/print.R
@@ -7,7 +7,7 @@ ) html_table <- htmltools::HTML(as.character(x)) html_result <- htmltools::tagList(html_header, html_table) - if (interactive & rstudioapi::isAvailable()) { + if (interactive() & rstudioapi::isAvailable()) { htmltools::html_print(html_result, viewer = rstudioapi::viewer) } print(html_result)