Hello all, In one of the packages (phylobase) I'm contributing to, we define a class as follows:
setClass("phylo4", representation(edge = "matrix", edge.length = "numeric", label = "character", edge.label = "character", order = "character", annote = "list"), prototype = list( edge = matrix(nrow = 0, ncol = 2, dimname = list(NULL, c("ancestor", "descendant"))), edge.length = numeric(0), label = character(0), edge.label = character(0), order = "unknown", annote = list() ), validity = checkPhylo4) Using today's SVN checkout (r61643), building an object of the class 'phylo4' like this: phylo4(foo, annote="bar") doesn't return an error as it used to (given that annote is not a list). What is now the preferred way of checking that annote is a actually a list? Thanks, -- François [[alternative HTML version deleted]]
______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel