search for: wherep

Displaying 6 results from an estimated 6 matches for "wherep".

Did you mean: where
2016 Jun 25
2
strange behavior in 'inherits' check for loaded S4 object
Hi, (sorry for the wall of text; the issue here appears to be rather complicated) I'm seeing a somewhat strange case where checking whether an S4 object inherits from a parent class defined from another package with 'inherits' fails if that object is materialized through a call to 'load'. That's a mouthful, so I've put together a relatively small reproducible example
2016 Jul 29
2
strange behavior in 'inherits' check for loaded S4 object
...as the S3 class cache has not been > populated yet; ie, this code returns NULL: > > https://github.com/wch/r-source/blob/trunk/src/library/methods/R/SClasses.R#L238-L240 > > So, the class hierarchy is looked up using this code: > > if(isTRUE(nzchar(package))) { > whereP <- .requirePackage(package) > value <- get0(cname, whereP, inherits = inherits) > } > > However, because the '.__C__SubMatrix' object is only made available > in the package's namespace, not within the package environment, it is > not resolved, and so...
2016 Jul 29
0
strange behavior in 'inherits' check for loaded S4 object
...55 Note that we reach this code path as the S3 class cache has not been populated yet; ie, this code returns NULL: https://github.com/wch/r-source/blob/trunk/src/library/methods/R/SClasses.R#L238-L240 So, the class hierarchy is looked up using this code: if(isTRUE(nzchar(package))) { whereP <- .requirePackage(package) value <- get0(cname, whereP, inherits = inherits) } However, because the '.__C__SubMatrix' object is only made available in the package's namespace, not within the package environment, it is not resolved, and so lookup fails. (Presumedly, th...
2016 Jul 31
2
strange behavior in 'inherits' check for loaded S4 object
...been populated yet; ie, this code returns NULL: >>> >>> https://github.com/wch/r-source/blob/trunk/src/library/methods/R/SClasses.R#L238-L240 >>> >>> So, the class hierarchy is looked up using this code: >>> >>> if(isTRUE(nzchar(package))) { whereP <- >>> .requirePackage(package) value <- get0(cname, whereP, >>> inherits = inherits) } >>> >>> However, because the '.__C__SubMatrix' object is only >>> made available in the package's namespace, not within the >>> package en...
2016 Jul 30
0
strange behavior in 'inherits' check for loaded S4 object
...been populated yet; ie, this code returns NULL: >> >> https://github.com/wch/r-source/blob/trunk/src/library/methods/R/SClasses.R#L238-L240 >> >> So, the class hierarchy is looked up using this code: >> >> if(isTRUE(nzchar(package))) { whereP <- >> .requirePackage(package) value <- get0(cname, whereP, >> inherits = inherits) } >> >> However, because the '.__C__SubMatrix' object is only >> made available in the package's namespace, not within the >> package en...
2016 Aug 02
0
strange behavior in 'inherits' check for loaded S4 object
...ie, this code returns NULL: >>>> >>>> https://github.com/wch/r-source/blob/trunk/src/library/methods/R/SClasses.R#L238-L240 >>>> >>>> So, the class hierarchy is looked up using this code: >>>> >>>> if(isTRUE(nzchar(package))) { whereP <- >>>> .requirePackage(package) value <- get0(cname, whereP, >>>> inherits = inherits) } >>>> >>>> However, because the '.__C__SubMatrix' object is only >>>> made available in the package's namespace, not within the >...