We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fed7b10 commit 4969d70Copy full SHA for 4969d70
R/offline.R
@@ -114,6 +114,6 @@ get_browser <- function() {
114
# default web browser
115
if (is.null(browseR) || !is.function(browseR) ||
116
inherits(try(browseR('http://www.rstudio.com'), silent = TRUE), 'try-error'))
117
- browseR = getOption("browser")
+ browseR = browseURL
118
browseR
119
}
R/print.R
@@ -62,7 +62,7 @@ print.offline <- function(x, ...) {
62
63
index <- file.path(d, "index.html")
64
res <- writeLines(html, index)
65
- if (!is.null(x$viewer)) x$viewer(index)
+ if (is.function(x$viewer)) x$viewer(index)
66
67
68
#' Embed a plotly iframe into an R markdown document via \code{knit_print}
0 commit comments