We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcf4bc9 commit b4a142bCopy full SHA for b4a142b
R/export.R
@@ -8,7 +8,7 @@
8
#' @examples \dontrun{
9
#' export(plot_ly(economics, x = ~date, y = ~pce))
10
#' }
11
-export <- function(p, file = "plotly.png", ...) {
+export <- function(p = last_plot(), file = "plotly.png", ...) {
12
if (system.file(package = "webshot") == "") {
13
stop(
14
'Please install the webshot package ',
0 commit comments