search for: getclass

Displaying 20 results from an estimated 113 matches for "getclass".

Did you mean: setclass
2004 Dec 17
1
h323 channel compile error
...d identifier is reported only once for each function it appears in.) ast_h323.h:62: parse error before `::' ast_h323.h:62: warning: no return statement in function returning non-void ast_h323.h: At top level: ast_h323.h:62: virtual outside class declaration ast_h323.h:62: non-member function `GetClass (unsigned int)' cannot have `const' method qualifier ast_h323.h: In function `const char *GetClass (unsigned int)': ast_h323.h:62: parse error before `::' ast_h323.h:62: no method `H323_G7231Capability::Class' ast_h323.h: At top level: ast_h323.h:62: syntax error before `('...
2016 Jun 26
2
3 minor issues with getClass 'resolve.msg' arg
Hi, It turns out that two packages (1 Bioconductor, 1 CRAN) define an S4 class called "Annotated": library(S4Vectors) # see (*) at bottom for how to install library(RNeXML) 1st issue --------- getClass() issues the same warning twice: tmp <- getClass("Annotated") Found more than one class "Annotated" in cache; using the first, from namespace 'S4Vectors' Found more than one class "Annotated" in cache; using the first, from namespace 'S4Vecto...
2016 Jul 11
0
3 minor issues with getClass 'resolve.msg' arg
...21:00 -0700 writes: > Hi, > It turns out that two packages (1 Bioconductor, 1 CRAN) define an > S4 class called "Annotated": > library(S4Vectors) # see (*) at bottom for how to install > library(RNeXML) > 1st issue > --------- > getClass() issues the same warning twice: > tmp <- getClass("Annotated") > Found more than one class "Annotated" in cache; using the first, from > namespace 'S4Vectors' > Found more than one class "Annotated" in cache; using the first, f...
2012 Aug 29
0
"Ambiguous" variation of default environment in `getClasses()` (standard function vs. formal S4 method)
Dear list, This probably makes perfect sense from the language designers' perspective, but at least for me this was/is quite an interesting and unexpected behavior which I thought might be worth sharing: The default value of argument |where|in function |getClasses()|seems to vary depending on whether |getClasses()|is called inside a *standard R function*or a *formal S4 method*. It is controlled by |.externalCallerEnv()|, which seems to be "vulnerable" to /lazy evaluation/and/or an "altered" /lexical scoping/structure (possible intr...
2003 Sep 07
1
Problem Installing Open H.323 Channel Driver
...mt.h: No such file or directory ast_h323.h:34: lid.h: No such file or directory ast_h323.cpp:29: h323t38.h: No such file or directory In file included from ast_h323.cpp:28: ast_h323.h:71: parse error before `{' ast_h323.h:72: virtual outside class declaration ast_h323.h:72: non-member function `GetClass(unsigned int)' cannot have `const' method qualifier ast_h323.h: In function `const char * GetClass(unsigned int = 0)': ast_h323.h:72: `H323AudioCapability' undeclared (first use this function) ast_h323.h:72: (Each undeclared identifier is reported only once ast_h323.h:72: for each f...
2013 Feb 01
0
R code parallelized using plyr and doMC: error message: Error in do.ply(i) : task 1 failed - “could not find function ”getClass“”
...only a few times and registering only a couple of cores). But when I run it on the cluster, the output file shows that it ran each of the 500 iterations, but I get no output file, and I get the following error message: |Error in do.ply(i) : task1 failed- "could not find function"getClass"" Calls: llply-> %dopar% -> <Anonymous> Execution halted Nodes: trestles-10-28| Anybody have any idea what is going on here? Thanks in advance! Andrew PS: (Apologies for cross posting, this is also on stack overflow) [[alternative HTML version deleted]]
2004 Oct 25
1
usage and behavior of 'setIs'
Hello, am I using 'setIs' in the correct way in the subsequent (artifical) example? Do I have to specify explicit 'setAs' for 'list' and 'vector' or should this work automatically, since "getClass("List1")" states an explicit coerce also for these classes. I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000. Thanks for your advice, Matthias # example setClass(Class = "List1", representation(List = "list")) setClass(Class = "List2&quot...
2008 May 13
3
R benchmarking program
...nchmark Test V. 2 # by Stephan Steinhaus (stst at informatik.uni-frankfurt.de) # Reference for Escoufier's equivalents vectors (test III.5): # Escoufier Y., 1970. Echantillonnage dans une population de variables # aleatoires r??les. Publ. Inst. Statis. Univ. Paris 19 Fasc 4, 1-47. ... Error in getClass(Class, where = topenv(parent.frame())) : "geMatrix" is not a defined class Calls: new -> getClass Execution halted
2010 May 20
1
getSubClasses()?
Hi,   Is there a built in function that returns a character vector of all subclasses of a given superclass? showClass(Class = "SomeClass") contains the info that I want, but I don't know how to access it. getSubClasses <- function(superClass) return(setdiff(getClasses(.GlobalEnv), superClass)) wíll only work if the global enviroment isn;t filled with other class definitions. I've seen functions that somewhat resemble it, but are not quite the same. Thanks in advance! Cheers!! Albert-Jan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
2010 Nov 07
2
stupid R tricks
Hi all, Just thought I'd post this (maybe) helpful tool I wrote. For people like me who are bad at keeping a clean environment, it's a time-saver. #simple command to get only one type of object in current environment lstype<-function(type='closure'){ inlist<-ls(.GlobalEnv) if (type=='function') type <-'closure'
2020 Oct 05
2
S4 - inheritance changed by order of setClassUnion and setAs()
Dear colleagues, there is a behaviour with S4 (virtual) classes that I find very hard to understand: Depending on the position of setAs(), the tree of inheritance changes. This is my baseline example that defines the classes "grandma", "mother", "daughter" and a virtual class "mr_x". For a new instance if "daughter", "mr_x" is betweeen
2013 May 08
1
Dependencies of Imports not attached?
Encountered an error in scripting, which can be reproduced using Rscript as follows: $ Rscript -e "library(httr); handle('http://cran.r-project.org')" Error in getCurlHandle(cookiefile = cookie_path, .defaults = list()) : could not find function "getClass" Calls: handle -> getCurlHandle or by starting R without the methods package attached: $ R_DEFAULT_PACKAGES=base R [snip] > library(httr) > handle('http://cran.fhcrc.org/') Error in getCurlHandle(cookiefile = cookie_path, .defaults = list()) : could not find function &quot...
2005 Jan 07
1
S4 class no longer accepts matrix in array slot under 2.0.1
..., NA, NA)) : No method or default for as() replacement of "foo" with Class="matrix" This last error did not occur under 1.9.1. I conclude that in this context the methods package does not recognise "matrix" as a subclass of "array". However if I use getClass(), I see that R recognises "matrix" as a subclass of "array" (and vice-versa). So is this new behaviour correct? [this is a simplified (and final) reposting of an earlier question entitled "matrix no longer "is" array in 2.0.1?"]
2010 Mar 24
1
R and/or REngine kills Java
...System.exit(1); } // creating R engine Rengine rEngine = new Rengine(null, false, new EmptyCallbacks()); // the engine creates R is a new thread, so we should wait until it's ready if (!rEngine.waitForR()) { System.out.println("Cannot load R for " + this.getClass().getName()); return; } // executing logic try { assign(rEngine, "filename", filepath); eval(rEngine, "source(filename)"); } catch (Exception e) { System.out.println(this.getClass().getName() + ": Error in R code: " + e); e.pri...
2012 Jun 18
1
Error w/ Start up Script
...loaded. See ?R.methodsS3 for help. R.oo v1.9.3 (2012-03-18) successfully loaded. See ?R.oo for help. Attaching package: 'R.oo' The following object(s) are masked from 'package:R.methodsS3': throw.default The following object(s) are masked from 'package:methods': getClass, getClasses, getMethods The following object(s) are masked from 'package:base': attach, detach, gc, load, save R.utils v1.12.1 (2012-03-20) successfully loaded. See ?R.utils for help. Attaching package: 'R.utils' The following object(s) are masked from 'package:utils...
2020 Oct 06
0
S4 - inheritance changed by order of setClassUnion and setAs()
...etClass("daughter", slots = c(c = "list"), contains = "mother") > setClassUnion(name = "mr_x", members = c("daughter", "mother")) > setClassUnion(name = "mr_y", members = c("daughter", "mother")) > getClass("daughter") Class "daughter" [in ".GlobalEnv"] Slots: Name: c b a Class: list matrix character Extends: Class "mother", directly Class "mr_x", directly Class "mr_y", directly Class "grandm...
2005 Jan 05
0
matrix no longer "is" array in 2.0.1?
...) [1] "array" > dim(as(1,"array")) [1] 1 but: > class(as(matrix(1,1,1),"array")) [1] "matrix" I have checked using extends(), and matrix and array still extend one another (hence there is a trivial but unhelpful answer to the title of this posting). getClass() shows some differences, but I am not sure whether they are related to this issue: 1.9.1 >getClass("matrix") No Slots, prototype of class "matrix" Extends: "structure", "array" Known Subclasses: Class "array", directly, with explicit test a...
2004 Jun 18
0
Problem with setValidity() or resetClass() or ... ?
...", function(object) object@name) setClass("Class2", representation("Class1")) setClass("Class3", representation("Class2")) setClass("Class4", representation("Class3")) setClass("Class5", representation("Class4")) getClass("Class3") # as I expected Class3Def <- getClassDef("Class3", where = topenv(parent.frame())) ## the following is called in setValidity() via resetClass() ## (further explanations, see below) completeClassDefinition("Class3", Class3Def, where = topenv(paren...
2012 Feb 26
2
Help needed! Error in setwd(newdir) : cannot change working directory
...(2011-11-01) successfully loaded. See ?R.oo for help.>>>>Attaching package: ‘R.oo’>>>>The following object(s) are masked from ‘package:R.methodsS3’:>> >> throw.default>>>>The following object(s) are masked from ‘package:methods’:>> >> getClass, getClasses, getMethods>>>>The following object(s) are masked from ‘package:base’:>> >> attach, detach, environment, gc, load, save>>>>R.utils v1.9.11 (2012-01-17) successfully loaded. See ?R.utils for help.>>>>Attaching package: ‘R.utils’>>&g...
2010 Jan 20
1
R.oo installation warnings?
...ning in setGenericS3.default(name, envir = envir, validators = validators) : Renamed the preexisting function getMethods to getMethods.default, which was defined in environment base. Warning in setGenericS3.default(name, envir = envir, validators = validators) : Renamed the preexisting function getClasses to getClasses.default, which was defined in environment base. Warning in setMethodS3.default("throw", "default", function(...) { : Method already existed and was overwritten: throw.default ** help Warning: package 'R.oo' claims to be built under R version 2.10.0 but...