Skip to content

Commit a7cddcd

Browse files
committed
filename argument should take precedence
1 parent c524022 commit a7cddcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/plotly_POST.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ plotly_POST <- function(x, filename = NULL, fileopt = "overwrite",
3939
sharing = c("public", "private", "secret")) {
4040
x <- plotly_build(x)
4141
# try our damndest to assign a sensible filename
42-
x$filename <- x$filename %||% as.character(x$layout$title) %||%
42+
x$filename <- filename %||% x$filename %||% as.character(x$layout$title) %||%
4343
paste(c(x$layout$xaxis$title, x$layout$yaxis$title, x$layout$zaxis$title),
4444
collapse = " vs. ") %||% paste("Created at", Sys.time())
4545
if (!is.null(x$fileopt)) {

inst/examples/flexdashboard/index.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ states_map <- map_data("state")
5454
g <- ggplot(crimesm, aes(map_id = state)) +
5555
geom_map(aes(fill = value), map = states_map) +
5656
expand_limits(x = states_map$long, y = states_map$lat) +
57-
facet_wrap( ~ variable)
57+
facet_wrap( ~ variable) + theme_void()
5858
ggplotly(g)
5959
```
6060

0 commit comments

Comments
 (0)