Skip to content

Commit

Permalink
Don't open a new graphics device
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Feb 20, 2014
1 parent ba03237 commit 52c30c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/build.r
Expand Up @@ -146,7 +146,8 @@ build_demos <- function(pkg = ".") {

for(i in seq_along(title)) {
demo_code <- readLines(file.path(demo_dir, in_path[i]))
demo_expr <- evaluate(demo_code, new.env(parent = globalenv()))
demo_expr <- evaluate(demo_code, new.env(parent = globalenv()),
new_device = FALSE)

pkg$demo <- replay_html(demo_expr, pkg = pkg, name = str_c(pieces[i], "-"))
pkg$pagetitle <- title[i]
Expand Down

0 comments on commit 52c30c8

Please sign in to comment.