search for: methodspackagemetaname

Displaying 5 results from an estimated 5 matches for "methodspackagemetaname".

2004 Jul 22
2
Files and classes in a package?
...Class("bclass", representation(j="numeric")) When combining the source files, R seems to generate one new source file based on alphabetic orders of file names. In this case, loading the "pkg" package failed with the following error message. > library(pkg) Error in methodsPackageMetaName("C", name) : The name of the object (e.g,. a class or generic function) to find in the meta-data must be a single string (got an object of class "NULL") > traceback() 12: methodsPackageMetaName("C", name) 11: classMetaName(Class) 10: getClassDef(Class, where...
2004 Aug 12
1
correlation structures in NLME
...n structure with the function corAR1 in NLME. This example is taken from the book of Pinheiro and Bates, so it should work. What is going wrong? > library(nlme) > data(Orthodont) > cs1AR1 <- corAR1(0.8, form= ~1 | Subject) > cs1AR1 <- initialize(cs1AR1, data = Orthodont) Error in methodsPackageMetaName("C", name) : The name of the object (e.g,. a class or generic function) to find in the meta-data must be a single string (got a character vector of length 2) In addition: Warning message: the condition has length > 1 and only the first element will be used in: if (!is.na(matc...
2003 Aug 06
1
S4 methods bug in naming of slots (PR#3665)
...ok", representation( "A" = "matrix", "C" = "matrix")) new("notok", "A" = diag(4), "C" = diag(4)) It says > new("notok", + "A" = diag(4), + "C" = diag(4)) Error in methodsPackageMetaName("C", name) : The name of the object (e.g,. a class or generic function) to find in the meta-data must be a single string (got an object of class "matrix") Can this bug be fixed? It doesn't work in the Windows version either. Thanks in advance. Thomas
2006 Apr 17
1
slot named C
...a slot in an S4 class (example below). If this is a known limitation, and not a bug, it would be nice if it were caught by setClass. Paul Gilbert > setClass("testobj", representation ( C = "numeric")) [1] "testobj" > new("testobj", C= 2) Error in methodsPackageMetaName("C", name) : 'The name of the object (e.g,. a class or generic function) to find in the meta-data' must be a single string (got an object of class "numeric") > setClass("testobj", representation ( C. = "numeric")) [1] "testobj&quot...
2003 Mar 10
4
terms.formula
...qss(x), or qss(x,z). I need some advice about strategy for formula processing. My initial foray was to use: terms(formula,specials="qss") and then modify the components of the resulting terms.object. But in changing formula at factors to drop the qss columns and rows, I ran afoul of methodsPackageMetaName which claimed that it was "being abused" by this. if(!is.null(attr(formula,"specials"))){ qss.col <- pmatch("qss",attr(formula,"term.labels")) qss.row <- formula at specials$qss formula at factors <- formula at factors[-qss.row,...