search for: packageslot

Displaying 7 results from an estimated 7 matches for "packageslot".

Did you mean: packageset
2012 Jun 21
1
package slot of generic "[" and missing env@target?
...ANY cannot use with duplicate class names (the package may need to be re-installed) I have done "debug(methods:::.pkgMethodLabel)" and found that curiously, it is invoked for the two copies of the "[" generic with signature "classes myclass, ANY, ANY, ANY", ones with packageSlot(method at target) sets to c("mypackage2", "methods", "methods", "methods"), the other just c("", "", "",""), instead of c("mypackage1", "methods", "methods", "methods"). So in...
2018 Jan 29
2
bug [methods]: double execution of `insertSource` within the same session does not work
...]> env # Object of class "sourceEnvironment" # Source environment created 2017-12-01 05:19:51 # For package "gmapsdistance" # From source file "gmapsdistancefix.R" # later, before line 52: x = env Browse[2]> package [1] "gmapsdistance" # evaluate 52 packageSlot(env) <- package # objects x and env are still identical # Browse[2]> class(env) # [1] "sourceEnvironment" # attr(,"package") # [1] "methods" # Browse[2]> class(x) # [1] "sourceEnvironment" # attr(,"package") # [1] "methods" # Br...
2004 Oct 06
1
R 2.0.0: namespaces, S4 classes & versioned package installation: failure to resolve correct pkg version
...") [1] "stats4" as far as i could understand the problem lies in the 'package' attribute not being set to package + version string. In the call sequence new -> getClass -> getClassDef: here .requirePackage(package) is called where package is retrieved from package = packageSlot(Class) Is this speculation correct or did I make a mistake somewhere else? Is there any way to teach methods to look for the classes in the versioned package in the search path? Or is this just asking more than can be achieved with the current methods implementation? Any help or suggestion is g...
2019 Sep 27
0
missing imports not detected by 'R CMD check' (?)
...loaded, but not attached, as in > ## Rscript --vanilla -e 'require(methods);(M <- Matrix::Matrix(0:1,3,3)); as(M,"sparseMatrix")' > , as, is, extends, new > , callGeneric, callNextMethod > , .selectSuperClasses, .slotNames, canCoerce, packageSlot > , getClass, getClassDef, validObject > , setClass, setClassUnion, setMethod, setOldClass > , setValidity, slot, "slot<-", slotNames, .hasSlot > , signature, representation, prototype) > I see that you do not list 'setGeneric...
2018 Jan 29
0
bug [methods]: double execution of `insertSource` within the same session does not work
...> # Source environment created 2017-12-01 05:19:51 > # For package "gmapsdistance" > # From source file "gmapsdistancefix.R" > > > # later, before line 52: > x = env > Browse[2]> package > [1] "gmapsdistance" > > # evaluate 52 > packageSlot(env) <- package > > # objects x and env are still identical > # Browse[2]> class(env) > # [1] "sourceEnvironment" > # attr(,"package") > # [1] "methods" > # Browse[2]> class(x) > # [1] "sourceEnvironment" > # attr(,"pa...
2005 Apr 18
1
R-2.1.0 is released
...summary.lm() now behaves more sensibly for empty models. o plot.window() was using the wrong sign when adjusting xlim/ylim for positive 'asp' and a reversed axis. o If malloc() fails when allocating a large object the allocator now does a gc and tries the malloc() again. o packageSlot() and getGroupMembers() are now exported from the 'methods' package as they should from documentation and the Green Book. o rhyper() was giving numbers slightly too small, due to a bug in the original algorithm. (PR#7314) o gsub() was sometimes incorrectly matching ^ inside a...
2005 Apr 18
1
R-2.1.0 is released
...summary.lm() now behaves more sensibly for empty models. o plot.window() was using the wrong sign when adjusting xlim/ylim for positive 'asp' and a reversed axis. o If malloc() fails when allocating a large object the allocator now does a gc and tries the malloc() again. o packageSlot() and getGroupMembers() are now exported from the 'methods' package as they should from documentation and the Green Book. o rhyper() was giving numbers slightly too small, due to a bug in the original algorithm. (PR#7314) o gsub() was sometimes incorrectly matching ^ inside a...