Skip to content

Commit

Permalink
Revert "added null device (IRkernel#340)"
Browse files Browse the repository at this point in the history
This reverts commit 24e6833.
  • Loading branch information
jankatins committed May 19, 2016
1 parent dc700d4 commit 997ec9d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions R/environment.r
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,3 @@ init_cran_repo <- function() {
init_session <- function() {
init_cran_repo()
}


init_null_device <- function() {
null_file <- switch(.Platform$OS.type, windows = 'NUL', unix = '/dev/null')
null_device <- function(filename = null_file, ...) png(filename, ...)

if (identical(getOption('device'), pdf)) {
options(device = null_device)
}
}
1 change: 0 additions & 1 deletion R/execution.r
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ initialize = function(...) {
# in the current session
init_shadowenv()
init_session()
init_null_device()

callSuper(...)
},
Expand Down

0 comments on commit 997ec9d

Please sign in to comment.