Displaying 2 results from an estimated 2 matches for "makeoutput".
Did you mean:
cmakeoutput
2004 Feb 27
0
Re: [R] Is there a way to deactivate partial matching in R?
...where the second one is optional
like in
plot.someobject(xAndOry, yOptional=NULL, ...) # the standard plot(x,
y=NULL, ...) is a safe exception
# I agree that such examples can be avoided, but I ran into my problem after
6 years experience with S.
# My actual example had the following structure
makeoutput <- function(outchannel=NULL, ...){
if (is.null(outchannel))
outchannel <- activechannel
## for each in ... output to outchannel
}
# as outchannel was usually specified and only occasionally the default
used,
# it was more 'natural' (and lazy) to call it
makeoutput(mychannel, .....
2010 Jan 21
1
Rgeneric.py assists in rearranging generic function definitions
I've attached a script I wrote that pulls all the setGeneric definitions
out of a set of R files and puts them in a separate file, default
allGenerics.R. I thought it might help others who find themselves in a
similar situation.
The "situation" was that I had to change the order in which files in my
package were parsed; the scheme in which the generic definition is in
the