search for: envrefclass

Displaying 10 results from an estimated 10 matches for "envrefclass".

2014 Sep 21
1
Bug in new behaviour for all.equal and environments?
Hi R-devel, The following code: all.equal(baseenv(), baseenv()) gives the error when run in a clean R session with latest R-devel (r66650): kevin:~$ R --vanilla --slave -e "all.equal(baseenv(), baseenv())" Error in all.equal.envRefClass(target[[i]], current[[i]], check.attributes = check.attributes, : attempt to apply non-function Calls: all.equal ... all.equal.list -> all.equal -> all.equal.envRefClass Execution halted Although I don't know if it's helpful -- it appears that packages that include som...
2012 Aug 22
1
loading both RPostgreSQL and RSQLite leads to problems
...include my email address in any reply. best jon mcauliffe jon at mcauliffe.com (1) > showMethods('show') Function: show (package methods) object="ANY" object="classGeneratorFunction" object="classRepresentation" object="dbObjectId" object="envRefClass" object="function" (inherited from: object="ANY") object="genericFunction" object="genericFunctionWithTrace" object="MethodDefinition" object="MethodDefinitionWithTrace" object="MethodSelectionReport" object="MethodW...
2011 Jun 06
1
Reference Classes: shortcut like 'isS4' for Ref Classes?
Dear list, is there a shortcut-function to check whether a class is a Reference Class or not? There's something like this for S4 classes ('isS4(object)'), but I couldn't find anything regarding Ref Classes. Currently, I'm doing it this way, which is a bit clumsy: A <- setRefClass("A", fields=list(X="numeric")) a <- A$new() isRefClass <-
2011 Jun 01
1
possibly invalid assertion in setRefClass?
> setRefClass("Foo", fields = list()) Error in setRefClass("Foo", fields = list()) : A list argument for fields must have nonempty names for all the fields In my opinion, the above should not fail. There are no fields. Thanks, Michael [[alternative HTML version deleted]]
2010 Nov 24
2
Reference Classes: how to clone/copy instances?
Dear list, I don't know what's the correct term for this in the OOP context, but is it possible to "clone"/copy an instance of a reference class (say 'a') so that I get an *autonomous* second instance 'b'? Autonomous in the sense that changes to 'a' do not affect 'b'. I know that this is somewhat against the pass-by-reference paradigm, but the
2013 Oct 18
0
pamer.fnc y la nueva versión de R
...:20] 1 1 1 1 1 1 1 1 1 1 ... .. ..$ weights: num [1:20] 1 1 1 1 1 1 1 1 1 1 ... .. ..$ wtres : num [1:20] 13.3 -20.2 -13.7 12.7 15.9 ... .. ..$ y : num [1:20] 528 470 480 514 531 ... .. ..$ REML : int 4 .. ..and 26 methods, of which 14 are possibly relevant: .. .. allInfo, copy#envRefClass, initialize, initialize#lmResp, initializePtr, initializePtr#lmResp, objective, ptr, ptr#lmResp, .. .. setOffset, setResp, setWeights, updateMu, wrss ..@ Gp : int [1:2] 0 4 ..@ call : language lmer(formula = RT ~ Condicion1 * Condicion2 + (1 | Subject), data = dat) ..@ frame :'d...
2013 Oct 18
2
pamer.fnc y la nueva versión de R
Javier, Creo que aquí aplica la ley de Linus que dice: "Dado un número suficientemente elevado de ojos, todos los errores se convierten en obvios". La persona que revisa y encuentra un error no necesariamente tiene que ser la misma que la que lo escribe. Una motivación muy importante al compartir un código es la de recibir los beneficios del control de calidad por parte de tus pares.
2013 Dec 02
1
pamer.fnc y la nueva versión de R
...gt; .. ..$ weights: num [1:20] 1 1 1 1 1 1 1 1 1 1 ... > .. ..$ wtres : num [1:20] 13.3 -20.2 -13.7 12.7 15.9 ... > .. ..$ y : num [1:20] 528 470 480 514 531 ... > .. ..$ REML : int 4 > .. ..and 26 methods, of which 14 are possibly relevant: > .. .. allInfo, copy#envRefClass, initialize, initialize#lmResp, initializePtr, initializePtr#lmResp, objective, ptr, ptr#lmResp, > .. .. setOffset, setResp, setWeights, updateMu, wrss > ..@ Gp : int [1:2] 0 4 > ..@ call : language lmer(formula = RT ~ Condicion1 * Condicion2 + (1 | Subject), data = dat) >...
2011 Oct 31
0
R 2.14.0 is released
...ge manuals. If you do not have that font installed, you can set R_RD4PF to one of the other options: see the 'R Installation and Administration Manual'. o Automatic printing for reference classes is now done by the $show() method. A method is defined for class envRefClass and may be overriden for user classes (see the ?ReferenceClasses example). S4 show() methods should no longer be needed for reference classes. o tools::Rdiff (by default) and R CMD Rdiff now ignore differences in pointer values when comparing printed environments, comp...
2011 Oct 31
0
R 2.14.0 is released
...ge manuals. If you do not have that font installed, you can set R_RD4PF to one of the other options: see the 'R Installation and Administration Manual'. o Automatic printing for reference classes is now done by the $show() method. A method is defined for class envRefClass and may be overriden for user classes (see the ?ReferenceClasses example). S4 show() methods should no longer be needed for reference classes. o tools::Rdiff (by default) and R CMD Rdiff now ignore differences in pointer values when comparing printed environments, comp...