search for: vaildobject2

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

2009 Jun 18
1
validObject throws non-caught error when slot doesn't exist
...tNames[[i]]), silent = TRUE) if (class(sloti) == "try-error") { errors <- c(errors, paste("missing slot \"", slotNames[[i]], "\"", sep = "")) next } Here is a reproduce and an example using vaildObject2 that substitutes the offending line with the code given above: > setClass("Foo", representation(bar = "character")) [1] "Foo" > a <- new("Foo", bar = letters) > setClass("Foo", representation(bar = "character", star = &quo...