Skip to content

Commit

Permalink
print
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Jan 18, 2024
1 parent 0c5ef60 commit 91bb64b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ print.tinytable <- function(x, ...) {
cat(out, file = htmlFile)
if (isTRUE(check_dependency("rstudioapi")) && rstudioapi::isAvailable()) {
rstudioapi::viewer(htmlFile)
} else {
} else if (interactive()) {
utils::browseURL(htmlFile)
} else {
cat("\n")
cat(out, sep = "\n")
cat("\n")
}
}

Expand Down

0 comments on commit 91bb64b

Please sign in to comment.