search for: localwarnings

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

2012 Feb 03
1
GAM (mgcv) warning: matrix not positive definite
...############################## Here is some further description: ## Simple use of gam gam(USE ~ X1 + s(X2) + s(X3), family = binomial, data = data, method="REML") # print no warning message. ## Using a function that capture warnings Model_n_Warnings <- function(expr) { localWarnings <- list() outModel <- withCallingHandlers(expr, warning = function(w) { localWarnings[[length(localWarnings)+1]] <<- w$message # store warning message invokeRestart("muffleWarning") # avoid printing warning message to console...
2009 Mar 27
1
deleting/removing previous warning message in loop
Hello R Users, I am having difficulty deleting the last warning message in a loop so that the only warning that is produced is that from the most recent line of code. I have tried options(warn=1), rm(last.warning), and resetting the last.warning using something like: > warning("Resetting warning message") This problem has been addressed in a previous listserve string,