search for: optionalnumeric

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

2004 Oct 14
2
setClassUnion
...rking on. The situation is similar to the following example: The DESCRIPTION file has entries: Depends: R (>= 2.0.0), methods Imports: methods LazyLoad: yes The NAMESPACE file has entries: importClassesFrom("methods", "NULL", "numeric") exportClass("OptionalNumeric", "class1", "class2") The example R code is: .onLoad <- function(lib, pkg){ require("methods", character = TRUE, quietly = TRUE) } setClassUnion("OptionalNumeric", c("numeric", "NULL")) setClass("class1", represe...
2004 Oct 14
2
setClassUnion
...rking on. The situation is similar to the following example: The DESCRIPTION file has entries: Depends: R (>= 2.0.0), methods Imports: methods LazyLoad: yes The NAMESPACE file has entries: importClassesFrom("methods", "NULL", "numeric") exportClass("OptionalNumeric", "class1", "class2") The example R code is: .onLoad <- function(lib, pkg){ require("methods", character = TRUE, quietly = TRUE) } setClassUnion("OptionalNumeric", c("numeric", "NULL")) setClass("class1", represe...