search for: capabilitiesx11

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

Did you mean: capabilities_1
2015 May 06
0
capabilities("X11"): Force refresh from within R? (... and minor documentation issue)
...ess a 'X11' device has already been used" actually means here; is it a disclaimer for the above behavior? If I restart R, the I get: > capabilities("X11") X11 TRUE I came up with the following approach that launches another R session querying the availability of X11: capabilitiesX11 <- function() { bin <- file.path(R.home("bin"), "Rscript") cmd <- "cat(capabilities('X11'))" value <- system2(bin, args=c("-e", dQuote(cmd)), stdout=TRUE) as.logical(value) } > capabilitiesX11() [1] TRUE but it's certainly...
2020 Feb 21
0
capabilities(), was [R-pkg-devel] ... No protocol specified (OS X only)
...ndows") return(z) ## Now we need to deal with any NA entries if X11 is unknown. nas <- names(z[is.na(z)]) if(any(nas %in% c("X11", "jpeg", "png", "tiff"))) { ## This might throw an X11 error z[nas] <- tryCatch(.Internal(capabilitiesX11()), error = function(e) FALSE) } z } and we could easily add a 2nd argument, say 'Xchk = TRUE' like this capabilities <- function(what = NULL, Xchk = TRUE) { z <- .Internal(capabilities()) if(!is.null(what)) z <- z[match(what...