Skip to content

Commit c41e785

Browse files
committed
allow plotly_build() to fail when running cod on master branch
1 parent 6aef18c commit c41e785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ save_outputs <- function(gg, name) {
5858
res <- RSassign(conn, plotly:::plotlyEnv, "plotlyEnv")
5959
res <- RSeval(conn, "unlockBinding('plotlyEnv', asNamespace('plotly'))")
6060
res <- RSeval(conn, "assign('plotlyEnv', plotlyEnv, pos = asNamespace('plotly'))")
61-
pm <- RSeval(conn, "plotly::plotly_build(gg)")
61+
pm <- RSeval(conn, "tryCatch(plotly::plotly_build(gg), function(e) 'plotly build error'")
6262
# it could be that the hash didn't exist, so make sure they're different
6363
if (plot_hash != digest::digest(pm)) {
6464
test_dir <- file.path(this_dir, gsub("\\s+", "-", name))

0 commit comments

Comments
 (0)