Re: [Rd] Too long pathname in bitmap() crashes R on WinXP

2007-03-30 Thread Prof Brian Ripley
It is also possible to trigger this on Unix: a buffer in postscript() is PATH_MAX when it should be 2*PATH_MAX + 2. I'll fix this in 2.5.0 alpha (there is also a potential issue inside the Windows' runcmd that needs fixing). On Fri, 30 Mar 2007, Henrik Bengtsson wrote: > Hi, > > using too long

[Rd] Too long pathname in bitmap() crashes R on WinXP

2007-03-30 Thread Henrik Bengtsson
Hi, using too long pathnames for bitmap() crash R on WinXP. I've verified that this is the case with R version 2.4.1 Patched (2007-03-25 r40958) and R version 2.5.0 alpha (2007-03-30 r40957). I cannot reproduce it on Linux. REPRODUCIBLE EXAMPLE: % Rterm --vanilla # Tell R where Ghostscript is

Re: [Rd] Rmpi and OpenMPI ?

2007-03-30 Thread Dirk Eddelbuettel
Ross, On 30 March 2007 at 14:47, Ross Boylan wrote: | On Fri, Mar 30, 2007 at 03:01:19PM -0500, Dirk Eddelbuettel wrote: | > | > On 30 March 2007 at 12:48, Ei-ji Nakama wrote: | > | Prof. Nakano(ism Japan) and I wrestled in Rmpi on HP-MPI. | > | Do not know a method to distinguish MPI well? | >

Re: [Rd] Replacing slot of S4 class in method of S4 class?

2007-03-30 Thread cstrato
Dear Ross Thank you for your explanation, now mymethod works (Simon gave me already a hint). Regarding the use of this list, I am confused. Which of my former questions regarding S4 classes belong to this list: https://stat.ethz.ch/pipermail/r-devel/2007-March/044840.html https://stat.ethz.ch/pi

Re: [Rd] error in lattice formattedTicksAndLabels.Date (PR#9590)

2007-03-30 Thread Deepayan Sarkar
On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Full_Name: James Szinger > Version: 2.4.1 > OS: linux and MacOS X > Submission from: (NULL) (128.165.24.206) Bugs in packages are supposed to go to package maintainers, not r-bugs. > I'm trying to plot some data from the past 12 months an

Re: [Rd] Rmpi and OpenMPI ?

2007-03-30 Thread Ross Boylan
On Fri, Mar 30, 2007 at 03:01:19PM -0500, Dirk Eddelbuettel wrote: > > On 30 March 2007 at 12:48, Ei-ji Nakama wrote: > | Prof. Nakano(ism Japan) and I wrestled in Rmpi on HP-MPI. > | Do not know a method to distinguish MPI well? > | It is an ad-hoc patch at that time as follows. There are some a

Re: [Rd] Replacing slot of S4 class in method of S4 class?

2007-03-30 Thread Ross Boylan
On Fri, Mar 30, 2007 at 10:45:38PM +0200, cstrato wrote: > Dear all, > > Assume that I have an S4 class "MyClass" with a slot "myname", which > is initialized to: myname="" in method("initialize"): >myclass <- new("MyClass", myname="") > > Assume that class "MyClass" has a method "mymethod":

Re: [Rd] Replacing slot of S4 class in method of S4 class?

2007-03-30 Thread Simon Urbanek
Please read the posting guide and use the appropriate mailing list (R- help) - your question has nothing to do with the development of R. Cheers, Simon PS: look closely at your code - your mymethod is a noop. On Mar 30, 2007, at 4:45 PM, cstrato wrote: > Dear all, > > Assume that I have an S4

Re: [Rd] error in lattice formattedTicksAndLabels.Date (PR#9590)

2007-03-30 Thread Marcus G. Daniels
Hi Jim, > x <- rnorm(12) > t <- seq( as.Date("2006-04-01"),by="month", length=12) > > plot(x~t) # Has labels "May", "Jul", "Sep", "Nov", Jan", "Mar" > xyplot(x~t)# Has labels "Jan", "Mar" How about: plot(x~t,xaxt="n") axis(1,at=t,labels=format.Date(t)) ___

Re: [Rd] bug?

2007-03-30 Thread Prof Brian Ripley
Yes, it is a bug, thanks. It needs a test for each > 0 if length.out > 0 is set. Added for 2.5.0. On Fri, 30 Mar 2007, Hiroyuki Kawakatsu wrote: >> rep(2,0) > numeric(0) >> rep(2,0,2) > [1] 2 2 >> rep(2,0,2,0) > Floating exception (core dumped) > > #yes, i should not be doing this but i mistaken

[Rd] Replacing slot of S4 class in method of S4 class?

2007-03-30 Thread cstrato
Dear all, Assume that I have an S4 class "MyClass" with a slot "myname", which is initialized to: myname="" in method("initialize"): myclass <- new("MyClass", myname="") Assume that class "MyClass" has a method "mymethod": "mymethod.MyClass" <- function(object, myname=character(0), ...)

[Rd] error in lattice formattedTicksAndLabels.Date (PR#9590)

2007-03-30 Thread jszinger
Full_Name: James Szinger Version: 2.4.1 OS: linux and MacOS X Submission from: (NULL) (128.165.24.206) I'm trying to plot some data from the past 12 months and the lattice package is not labeling the time axis correctly. It shows only two labels instead of the expected 12. The base graphics get

[Rd] bug?

2007-03-30 Thread Hiroyuki Kawakatsu
> rep(2,0) numeric(0) > rep(2,0,2) [1] 2 2 > rep(2,0,2,0) Floating exception (core dumped) #yes, i should not be doing this but i mistakenly did #par(oma=rep(2,0,2,0)) when i meant c(2,0,2,0) # #both on #2.4.1 Patched (2007-03-21 r40875); x86_64-unknown-freebsd6.2 #and #2.5.0 alpha (2007-03-30 r40

[Rd] use of ... in some functions does not work (PR#9591)

2007-03-30 Thread wolfram
Consider: x.lm <- function( ... ) lm( ... ) x.xyplot <- function( ... ) xyplot( ... ) x.dotplot <- function( ... ) dotplot( ... ) lm( dist ~ speed, data=cars, weight=speed ) x.lm( dist ~ speed, data=cars, weight=speed ) xyplot( variety ~ yield | si

Re: [Rd] Rmpi and OpenMPI ?

2007-03-30 Thread Dirk Eddelbuettel
On 30 March 2007 at 12:48, Ei-ji Nakama wrote: | Prof. Nakano(ism Japan) and I wrestled in Rmpi on HP-MPI. | Do not know a method to distinguish MPI well? | It is an ad-hoc patch at that time as follows. Thank you *very much* for this. I tried an ad-hoc patch that did about half of this (i.e. co