Re: [Rd] Extreme slowdown with named vectors. A bug?

2006-10-06 Thread Henrik Bengtsson
Thank *you* for identifying the source of the problem and fixing. :) /Henrik On 10/6/06, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 10/6/2006 6:20 PM, Henrik Bengtsson wrote: > > Tried the following with R --vanilla on the Rv2.4.0 release (see > > details at the end). I think the script and i

Re: [Rd] Bug in 2.4.0 Windows menu setup (PR#9277)

2006-10-06 Thread Ei-ji Nakama
iconv -f utf-8 -t cp936 RGui-zh_CN.po > RGui-zh_CN.po.cp936 iconv: illegal input sequence at position 19303 iconv -c -f utf-8 -t cp936 RGui-zh_CN.po > RGui-zh_CN.po.cp936 ^^ iconv -f cp936 -t utf-8 RGui-zh_CN.po.cp936 > RGui-zh_CN.po.cp936utf8 diff -uN RGui-zh_CN.po RGui-zh_CN.po.

Re: [Rd] Extreme slowdown with named vectors. A bug?

2006-10-06 Thread Duncan Murdoch
On 10/6/2006 6:20 PM, Henrik Bengtsson wrote: > Tried the following with R --vanilla on the Rv2.4.0 release (see > details at the end). I think the script and its comments speaks for > itself, but the outcome is certainly not wanted. I think this is fixed now in R-devel and R-patched. Thanks for

Re: [Rd] Extreme slowdown with named vectors. A bug? (PR#9280)

2006-10-06 Thread murdoch
On 10/6/2006 6:20 PM, Henrik Bengtsson wrote: > Tried the following with R --vanilla on the Rv2.4.0 release (see > details at the end). I think the script and its comments speaks for > itself, but the outcome is certainly not wanted. I see a similar effect to what you're describing. I also see i

Re: [Rd] Extreme slowdown with named vectors. A bug?

2006-10-06 Thread Charles C. Berry
Another example: > avec <- 1:55000 > names(avec) <- as.character(avec) > system.time(avec[names(avec)[1:39045]]) [1] 0.06 0.00 0.07 NA NA > system.time(avec[names(avec)[1:39046]]) [1] 23.89 0.00 23.94NANA > version _ platform i386-pc-mingw32 arch i386

[Rd] Extreme slowdown with named vectors. A bug?

2006-10-06 Thread Henrik Bengtsson
Tried the following with R --vanilla on the Rv2.4.0 release (see details at the end). I think the script and its comments speaks for itself, but the outcome is certainly not wanted. for (n in 58950:58970) { cat("n=", n, "\n", sep=""); # Clean up first rm(names, x, y); gc(); # Create a n

Re: [Rd] Bug in 2.4.0 Windows menu setup (PR#9277)

2006-10-06 Thread Duncan Murdoch
On 10/6/2006 1:35 PM, Hin-Tak Leung wrote: > Duncan Murdoch wrote: >> On 2006-10-5 8:06, Ei-ji Nakama wrote: >>> I do not understand Chinese, but recognize kanji. >>> RGui-zh_CN.po is written in utf-8, but charset=CP936 wrote. >>> >>> perl -p -i -e 's#charset=CP936#charset=utf-8#' RGui-zh_CN.po >

Re: [Rd] Bug in 2.4.0 Windows menu setup (PR#9277)

2006-10-06 Thread Hin-Tak Leung
Duncan Murdoch wrote: > On 2006-10-5 8:06, Ei-ji Nakama wrote: >> I do not understand Chinese, but recognize kanji. >> RGui-zh_CN.po is written in utf-8, but charset=CP936 wrote. >> >> perl -p -i -e 's#charset=CP936#charset=utf-8#' RGui-zh_CN.po >> msgfmt -o RGui.mo RGui-zh_CN.po > > Thanks!!

Re: [Rd] operator :: and symbols not in the namespace of a package with a namespace (PR#9279)

2006-10-06 Thread Duncan Murdoch
On 10/6/2006 10:44 AM, Luke Tierney wrote: > On Fri, 6 Oct 2006, Duncan Murdoch wrote: > >> On 10/6/2006 9:05 AM, [EMAIL PROTECTED] wrote: >>> Full_Name: Thomas Friedrichsmeier >>> Version: 2.4.0 >>> OS: GNU/Linux >>> Submission from: (NULL) (84.61.116.51) >>> >>> >>> Since R 2.4.0, operator "::"

Re: [Rd] operator :: and symbols not in the namespace of a package with a namespace (PR#9279)

2006-10-06 Thread Luke Tierney
On Fri, 6 Oct 2006, Duncan Murdoch wrote: > On 10/6/2006 9:05 AM, [EMAIL PROTECTED] wrote: >> Full_Name: Thomas Friedrichsmeier >> Version: 2.4.0 >> OS: GNU/Linux >> Submission from: (NULL) (84.61.116.51) >> >> >> Since R 2.4.0, operator "::" also returns objects in the package >> environment, if

Re: [Rd] Default argument value for "["

2006-10-06 Thread John Chambers
Should now be fixed in r-devel and 2.4 patched. Iago Mosqueira wrote: > El mié, 04-10-2006 a las 09:52 -0400, John Chambers escribió: > >> I think the problem in your case comes from the mechanism used to handle >> non-standard argument lists; notice that you have added 3 new >> arguments.

Re: [Rd] class unions?

2006-10-06 Thread John Chambers
The problem is a combination of a class union definition that includes a basic type as a member, and is not in a package. Class "numeric" is sealed, so at present setClassUnion() doesn't cache the new superclass in the definition of "numeric". In 2.4.0 that happens when a package is attached (

Re: [Rd] operator :: and symbols not in the namespace of a package with a namespace (PR#9279)

2006-10-06 Thread Duncan Murdoch
On 10/6/2006 9:05 AM, [EMAIL PROTECTED] wrote: > Full_Name: Thomas Friedrichsmeier > Version: 2.4.0 > OS: GNU/Linux > Submission from: (NULL) (84.61.116.51) > > > Since R 2.4.0, operator "::" also returns objects in the package environment, > if > the package does not have a namespace. This is a

[Rd] operator :: and symbols not in the namespace of a package with a namespace (PR#9279)

2006-10-06 Thread thomas . friedrichsmeier
Full_Name: Thomas Friedrichsmeier Version: 2.4.0 OS: GNU/Linux Submission from: (NULL) (84.61.116.51) Since R 2.4.0, operator "::" also returns objects in the package environment, if the package does not have a namespace. This is a very welcome addition. Additional wish: If a package has a names

[Rd] class unions?

2006-10-06 Thread Parlamis Franklin
the code below has me confused: setClassUnion("index", c("numeric", "character", "logical")) extends("numeric") # i don't see the class union library(Matrix) extends("numeric") # now i see the class union i am aware that the "Matrix" package separately defines the