search for: r65398

Displaying 2 results from an estimated 2 matches for "r65398".

Did you mean: r65396
2014 Apr 24
2
palette() can hang and fail due to X11
...uire("grDevices") palette(my.colors) That seemed to work reliably in all 2.x versions of R, regardless of whether my R was interactive or not, or if my Linux, ssh, and screen environment had X-Windows properly set up or not. It Just Worked. However, now in R 3.1.0 Patched (2014-04-15 r65398, on Linux), depending on whether I have a good X-Windows connection or not it can fail like so: Error in .External2(C_X11, d$display, d$width, d$height, d$pointsize, : unable to start device X11 Simply wrapping the palette() call in try() of course helps keep that error from breaking th...
2014 Apr 21
0
how to get old type.convert() numeric behavior?
...ay? my.can.be.numeric <- function(xx) { old.warn <- options(warn = -1) on.exit(options(old.warn)) (!is.na(as.numeric(xx))) } Example of the changed behavior in R 3.1.0 vs. earlier versions, both with options("digits"=10) set: # R version 3.1.0 Patched (2014-04-15 r65398) -- "Spring Dance" # Platform: x86_64-unknown-linux-gnu/x86_64 (64-bit) > type.convert(paste("0.", paste(rep(0:9,3)[seq_len(17)],collapse=""), sep=""), as.is=TRUE) [1] 0.01234568 > type.convert(paste("0.", paste(rep(0:9,3)[seq_len(18)],col...