[R] png: cannot load any more object with static TLS

2016-02-24 Thread Samuel Meyer
Hi all, I have an issue running png after loading various packages. After running library(drc) library(RCurl) library(XLConnect) library(ROracle) png("test.png") dev.off() The file fails to write, and I get Warning messages: 1: In png("test.png") : unable to load shared object '/usr/lib64/R/l

[R] How to catch both warnings and errors?

2013-01-10 Thread Samuel Meyer
I tried to use this solution (from over two years ago, but it remains an official demo), but found that it only captured the last warning rather than all of them. Instead, the code below collects all warnings. tryCatch.W.E <- function(expr) { W <- list() w.handler <- function(w){ # warni