Skip to content

Commit

Permalink
Only open demo video in interactive sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 3, 2018
1 parent 5ced335 commit 43811b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/demo.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ av_demo <- function(output = "demo.mp4", width = 960, height = 720, framerate =
if(as.logical(verbose))
cat("done!\n", file = stderr())
}, width = width, height = height, res = res, framerate = framerate, verbose = verbose, ...)
utils::browseURL(video)
if(interactive())
utils::browseURL(video)
return(video)
}

0 comments on commit 43811b4

Please sign in to comment.