Displaying 8 results from an estimated 8 matches for "elnamed".
Did you mean:
blamed
2006 Oct 11
1
Possible bug in accessing methods documentation? (PR#9291)
...e()) :
> no documentation for function 'featureNames' and signature 'object = "missing"'
>
>
> Am I expecting the wrong thing or is this broken?
I think it's broken. The line that looks broken is in .helpForCall,
where it has
methods::"elNamed<-"(sigClasses, arg, class(argVal))
Looking at the elNamed<- function, I think this is supposed to be
equivalent to
sigClasses[[arg]] <- class(argVal)
but it is not making any assignment. I don't understand the point of
doing the assignment that way, or why it's not worki...
2015 Jan 21
2
reducing redundant work in methods package
...st null
if(mustFind && identical(ans, FALSE))
stop(gettextf("methods may not be defined for primitive function %s
in this version of R",
sQuote(f)),
domain = NA)
ans
}
Seems to work just fine.
Yes, "el" and "elNamed" can probably go now.
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
On Wed, Jan 21, 2015 at 2:26 PM, Michael Lawrence <lawrence.michael at gene.com
> wrote:
> Note that setMethod() resolves .BasicFunsList in the methods namespace
> direc...
2015 Jan 21
2
reducing redundant work in methods package
Hi all,
The function call series genericForPrimitive -> .findBasicFuns -> .findAll
happens 4400 times while the GenomicRanges package is loading. Each time
.findAll follows a chain of environments to determine that the methods
namespace is the only one that holds a variable called .BasicFunsList. This
accounts for ~10% of package loading time. I'm sure there is some history
to that
2015 Jan 22
0
reducing redundant work in methods package
...stop(gettextf("methods may not be defined for primitive function %s
> in this version of R",
>
> sQuote(f)),
>
> domain = NA)
>
> ans
>
> }
>
> Seems to work just fine.
>
> Yes, "el" and "elNamed" can probably go now.
>
>
> Pete
>
> ____________________
> Peter M. Haverty, Ph.D.
> Genentech, Inc.
> phaverty at gene.com
>
> On Wed, Jan 21, 2015 at 2:26 PM, Michael Lawrence
> <lawrence.michael at gene.com> wrote:
>>
>> Note that setMetho...
2004 Jun 26
1
S4 group "Math", "getGroupMembers", "genericForPrimitive"
...f <- getGeneric(x)
if(is(f, "genericFunction"))f@group else NULL
}))
split(names(g), g)
}
getGroupMembers <- function(group, whatGenerics) {
groups <- if(missing(whatGenerics)) getGroups()
else getGroups(whatGenerics)
elNamed(groups, group)
}
2010 Oct 18
0
wishlist: system.file(..., mustExist = TRUE)
...uot;, system.file("DESCRIPTION", mustExist=TRUE))
and it would throw an informative error message instead of
returning "" if DESCRIPTION were misspelled.
base::parseNamespaceFile uses an argument called mustExist
for this sort of thing and several functions in package:methods
(elNamed, getGeneric, etc.) use mustFind.
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
2015 Jan 21
0
reducing redundant work in methods package
Note that setMethod() resolves .BasicFunsList in the methods namespace
directly when setting a method on a primitive. Somehow there should be
consistency between genericForPrimitive() and the check in setMethod().
Also, we can probably step away from the use of elNamed(), given that [[
now uses exact matching.
Have you tried patching methods to use .BasicFunsList directly as in
setMethod?
On Wed, Jan 21, 2015 at 10:41 AM, Peter Haverty <haverty.peter at gene.com>
wrote:
> Hi all,
>
> The function call series genericForPrimitive -> .findBasic...
2003 May 30
3
Missing 'getGroupMembers()'
Hi,
I'm trying to write a method such that my own classes can be used with the
groups like "Summary" and "Math", but when I tried to look for examples or
just wanted to get an idea of which functions are the members of a group, I
found out that the function "getGroupMembers" is not present... I couldn't
find an alternative function, if there is one. Does