Re: [R] interactive menu in scripts

2008-01-26 Thread Michał Bojanowski
Hi, Not going into the reason why would you like to do such a thing anyway, I would suggest: 1. Creating an R file that would contain all the functionality coded in functions. 2. The only executed code would be a function that calls the menu() and executes the appropriate functions. Sources o

Re: [R] Package Building and Name Space

2008-01-23 Thread Michał Bojanowski
Hi Johannes, Apparently the package 'strapply' does not have the namespace, so you cannot use importFrom directive to import gsubfn() from it. In that case, I believe, you need to rely on the "old" mechanism using require(). Apart from that, it also seems that 'strapply' package is not even in th

Re: [R] deparse, substitute and S4 generics

2008-01-22 Thread Michał Bojanowski
Hello Bill, Thanks! Indeed that works. Can you give me a hunch why? Does it have anything to do with environments and scope? ~michal Bill.Venables wrote: > > Try putting a ... argument in the method for g as well > > setGeneric("g", function(object, ...) standardGeneric("g")) > > setMethod