search for: sloti

Displaying 1 result from an estimated 1 matches for "sloti".

Did you mean: slot
2009 Jun 18
1
validObject throws non-caught error when slot doesn't exist
...rnally (and thus not controllable by 'test' argument) when retrieving a non-existent slot. The offending line of code is shown below: > validObject function (object, test = FALSE, complete = FALSE) { ... for (i in seq_along(slotTypes)) { classi <- slotTypes[[i]] sloti <- slot(object, slotNames[[i]]) # offending line of code One potential patch is to substitute the offending line with sloti <- try(slot(object, slotNames[[i]]), silent = TRUE) if (class(sloti) == "try-error") { errors <- c(errors, paste("missing...