Hello when my code executes I receive the message that were some warnings. I want to catch warning messages at run time so to print some local variables and try to understand why this warning happens.
I searched on internet and I tried withCallingHandlers( which seems to work but as I used Rkward the result is awful. I get a prompt to copy paste a value only while at the same time my background window with my code is not anymore accessible. Actually I get the warning that In f[cbind(shweights[, 1], shweights[, 2])] * shweights[, ... : longer object length is not a multiple of shorter object length and what I want is when the warning appear to be able to print the value shweights[,1] shweights[,2] to see what is going on. Any easier way to do that? Best REgards Alex [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.