Re: [Rd] Problem calling $ inside a $ method

2007-05-07 Thread Prof Brian Ripley
In x$name, 'name' is supposed to be a symbol, unevaluated, or a literal character string (but not a character vector). > f <- list(bob=1, alice=2) > `$`(f, "bob") [1] 1 > nm <- "bob" > `$`(f, nm) NULL illustrates your misunderstanding. Note that the S4 generic for $ in fact is "$" = function(x

Re: [Rd] Problem calling $ inside a $ method

2007-05-07 Thread Peter Dalgaard
Seth Falcon wrote: > Hello, > > I wonder if this will make it through the spam filters given the > subject line. > > I'm seeing the following when trying to call a dollar method inside of > a dollar method. > > > setClass("Foo", representation(d="list")) > [1] "Foo" > > f <- new("Foo",

Re: [Rd] sending signals to embedded R [SOLVED]

2007-05-07 Thread deepayan . sarkar
On 5/7/07, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > On 5/6/07, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > > > I will have to start learning about gdb sometime soon, but in this case, > the > > problem seems to be due to the interaction of R_tryEval() and > > graphics, and has nothing to do wi

[Rd] Problem calling $ inside a $ method

2007-05-07 Thread Seth Falcon
Hello, I wonder if this will make it through the spam filters given the subject line. I'm seeing the following when trying to call a dollar method inside of a dollar method. setClass("Foo", representation(d="list")) [1] "Foo" f <- new("Foo", d=list(bob=1, alice=2)) ## We can call

Re: [Rd] sending signals to embedded R

2007-05-07 Thread Deepayan Sarkar
On 5/6/07, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > I will have to start learning about gdb sometime soon, but in this case, the > problem seems to be due to the interaction of R_tryEval() and > graphics, and has nothing to do with interruptions. Here's a variant > of the trEval test case tha

Re: [Rd] Qt device update

2007-05-07 Thread Prof Brian Ripley
On Mon, 7 May 2007, Deepayan Sarkar wrote: > On 5/5/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > [...] > >> o dev.interactive() regards devices with the displaylist >> enabled >> as interactive, and packages can register the names of their >> devices as interactive vi

Re: [Rd] R CMD Rdconv drops sections: arguments, seealso, examples (PR#9649)

2007-05-07 Thread Bill Dunlap
On Fri, 4 May 2007, Prof Brian Ripley wrote: > On Thu, 3 May 2007, Prof Brian Ripley wrote: > > > It is not clear to me that throwing an error is helpful as it would stop > > the package installation process when all but one section in one .Rd file > > would be useful. But it would seem good to g

Re: [Rd] Qt device update

2007-05-07 Thread Deepayan Sarkar
On 5/5/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: [...] > odev.interactive() regards devices with the displaylist enabled > as interactive, and packages can register the names of their > devices as interactive via deviceIsInteractive(). Thanks. A related issue: 2.5

Re: [Rd] grep with fixed=TRUE and ignore.case=TRUE

2007-05-07 Thread Gabor Grothendieck
Seems like a good idea to me. Here is a workaround that works in any event which combines (?i), \Q and \E . to get the same effect. (?i) gives case insensitive matches and \Q and \E quote and endquote the intervening text disabling special characters: x <- c("D.G cat", "d.g cat", "dog cat") z <-

[Rd] grep with fixed=TRUE and ignore.case=TRUE

2007-05-07 Thread Petr Savicky
Dear R developers, I suggest to modify the behaviour of "grep" function with fixed=TRUE option. Currently, fixed=TRUE implies ignore.case=FALSE (overrides ignore.case=TRUE, if set by the user). I suggest to keep ignore.case as set by the user even if fixed=TRUE. Since the default of ignore.case