-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added null device #340
added null device #340
Conversation
could you test if
on windows? on linux it behaves as it should |
maybe we can add a unit test for this. ideas? |
If so, we nedd to do it in the python test code... |
|
||
|
||
init_null_device <- function() { | ||
null_file <- switch(.Platform$OS.type, windows = 'NUL', unix = '/dev/null') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mac OS X is included here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> help(.Platform)
OS.type: character string, giving the *O*perating *S*ystem (family) of
the computer. One of ‘"unix"’ or ‘"windows"’.
|
This reverts commit 24e6833.
This reverts commit 24e6833.
fixed, sorry |
circumvents #336 and friends
note that the device is still servicable using e.g.
dev.new('filename.png')
, as i used the null file as default argument.