[Rd] Bug in R CMD check for \ in Rd?

2013-01-03 Thread Yihui Xie
Hi, I have a function knit_expand() and its source/Rd are below: https://github.com/yihui/knitr/blob/master/R/template.R#L43-L44 https://github.com/yihui/knitr/blob/master/man/knit_expand.Rd When I run R CMD check on the package I get this warning (with both R 2.15.2 and R-devel): * checking fo

Re: [Rd] Bounty on Error Checking

2013-01-03 Thread Ben Bolker
ivo welch anderson.ucla.edu> writes: > > Dear R developers---I just spent half a day debugging an R program, > which had two bugs---I selected the wrongly named variable, which > turns out to have been a scalar, which then happily multiplied as if > it was a matrix; and another wrongly named var

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread peter dalgaard
On Jan 3, 2013, at 14:20 , peter dalgaard wrote: > > (Looks like MacPorts moved to Tcl/Tk 8.6. I'll see if it works with their R > port.) Done. No obvious consequences (i.e. demo(tkdensity) and a few Rcmdr experiments came out same as they used to). -- Peter Dalgaard, Professor, Center for

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Paul Johnson
Happy new year. On Mon, Dec 31, 2012 at 12:08 PM, Karl Forner wrote: > Hello, > > I spent a lot of a time on a weird bug, and I just managed to narrow it down. > > In parallel code (here with parallel::mclappy, but I got it > doMC/multicore too), if the library(tcltk) is loaded, R hangs when > tr

Re: [Rd] Bounty on Error Checking

2013-01-03 Thread Matthew Dowle
Ivo, That's standard R behaviour. But I've had similar bugs as you. If you really want to change it then one way would be to create your own helper function, say strictselect(), or shorter name and ensure to use that instead of [[ and $. Or, how about something like this? : DF = data.frame(a

[Rd] Small changes to big objects (1)

2013-01-03 Thread John Chambers
Martin Morgan commented in email to me that a change to any slot of an object that has other, large slot(s) does substantial computation, presumably from copying the whole object. Is there anything to be done? There are in fact two possible changes, one automatic but only partial, the other r

Re: [Rd] Bounty on Error Checking

2013-01-03 Thread Tim Triche, Jr.
Here is a JIT suggestion: add the message to errors/coredump reports "If you would like to submit a patch for this error, please contact r-devel@ r-project.org for further instructions. If you cannot, or would prefer not to, fix this error yourself, please consider donating $20 to the Fix My Bug

[Rd] Bounty on Error Checking

2013-01-03 Thread ivo welch
Dear R developers---I just spent half a day debugging an R program, which had two bugs---I selected the wrongly named variable, which turns out to have been a scalar, which then happily multiplied as if it was a matrix; and another wrongly named variable from a data frame, that triggered no error w

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Simon Urbanek
On Jan 3, 2013, at 5:59 AM, peter dalgaard wrote: > > On Jan 3, 2013, at 10:32 , Karl Forner wrote: > >> Hello, >> >> The point is that I do not use tcltk, it gets loaded probably as a >> dependency of a dependency of a package. >> When I unload it all work perfectly fine. I just found it beca

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Gabor Grothendieck
On Thu, Jan 3, 2013 at 7:45 AM, peter dalgaard wrote: > > On Jan 3, 2013, at 12:20 , Gabor Grothendieck wrote: > >> On Thu, Jan 3, 2013 at 5:59 AM, peter dalgaard wrote: >>> >>> On Jan 3, 2013, at 10:32 , Karl Forner wrote: >>> Hello, The point is that I do not use tcltk, it gets l

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread peter dalgaard
On Jan 3, 2013, at 13:13 , Prof Brian Ripley wrote: > On 03/01/2013 11:42, Duncan Murdoch wrote: >> On 13-01-03 6:20 AM, Gabor Grothendieck wrote: >> [snipped] >> I think it's unlikely that we will upgrade. The binaries available at >> that link do not have a license that would allow distribut

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread peter dalgaard
On Jan 3, 2013, at 12:20 , Gabor Grothendieck wrote: > On Thu, Jan 3, 2013 at 5:59 AM, peter dalgaard wrote: >> >> On Jan 3, 2013, at 10:32 , Karl Forner wrote: >> >>> Hello, >>> >>> The point is that I do not use tcltk, it gets loaded probably as a >>> dependency of a dependency of a package

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Prof Brian Ripley
On 03/01/2013 11:42, Duncan Murdoch wrote: On 13-01-03 6:20 AM, Gabor Grothendieck wrote: On Thu, Jan 3, 2013 at 5:59 AM, peter dalgaard wrote: On Jan 3, 2013, at 10:32 , Karl Forner wrote: Hello, The point is that I do not use tcltk, it gets loaded probably as a dependency of a dependency

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Duncan Murdoch
On 13-01-03 6:20 AM, Gabor Grothendieck wrote: On Thu, Jan 3, 2013 at 5:59 AM, peter dalgaard wrote: On Jan 3, 2013, at 10:32 , Karl Forner wrote: Hello, The point is that I do not use tcltk, it gets loaded probably as a dependency of a dependency of a package. When I unload it all work per

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Gabor Grothendieck
On Thu, Jan 3, 2013 at 5:59 AM, peter dalgaard wrote: > > On Jan 3, 2013, at 10:32 , Karl Forner wrote: > >> Hello, >> >> The point is that I do not use tcltk, it gets loaded probably as a >> dependency of a dependency of a package. >> When I unload it all work perfectly fine. I just found it beca

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Gabor Grothendieck
On Thu, Jan 3, 2013 at 4:32 AM, Karl Forner wrote: > Hello, > > The point is that I do not use tcltk, it gets loaded probably as a > dependency of a dependency of a package. > When I unload it all work perfectly fine. I just found it because one > of my computer did not have tk8.5 installed, and d

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread peter dalgaard
On Jan 3, 2013, at 10:32 , Karl Forner wrote: > Hello, > > The point is that I do not use tcltk, it gets loaded probably as a > dependency of a dependency of a package. > When I unload it all work perfectly fine. I just found it because one > of my computer did not have tk8.5 installed, and did

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Karl Forner
Hello, The point is that I do not use tcltk, it gets loaded probably as a dependency of a dependency of a package. When I unload it all work perfectly fine. I just found it because one of my computer did not have tk8.5 installed, and did not exhibit the mentioned bug. So I really think something s