Re: [Rd] NextMethod causes R 2.2.0 to crash (PR#8416)

2005-12-20 Thread Bill.Venables
Thanks Hendrik. My main concern is that it should not be so easy to crash R. On whether or not NextMethod from within the default method is kosher or not - I would have thought so, but clearly I'm wrong here. Perhaps NextMethod within a default method should be something that at least attracts a

Re: [Rd] NextMethod causes R 2.2.0 to crash (PR#8416)

2005-12-20 Thread Henrik Bengtsson
[EMAIL PROTECTED] wrote: > I found writing the following default method the for the generic > function "julian" causes R to crash. > > > julian.default <- function(x, ...) { > x <- as.Date(x) > NextMethod("julian", x, ...) > } On Windows XP R 2.2.0 Patched (2005-11-21 r36410) you

[Rd] NextMethod causes R 2.2.0 to crash (PR#8416)

2005-12-20 Thread Bill . Venables
I found writing the following default method the for the generic function "julian" causes R to crash. julian.default <- function(x, ...) { x <- as.Date(x) NextMethod("julian", x, ...) } Here is a test example > m <- as.Date("1972-09-27") + 0:10 > m [1] "1972-09-27" "1972-09-2

[Rd] suggestion: link oneway.test on kruskal.test page

2005-12-20 Thread P Ehlers
DevelopeRs: I think it might be useful to add a link to oneway.test() on the kruskal.test() help page. ("R version 2.3.0, 2005-12-09") Peter Ehlers U of Calgary __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Problems with Windows Cross compile

2005-12-20 Thread Warnes, Gregory R
Thanks, the default version of R here is 2.1.0, so that must have been the problem. Everything is working now. -Greg > -Original Message- > From: Jun Yan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 20, 2005 1:07 PM > To: Warnes, Gregory R > Cc: R-devel (E-mail); Anthony Rossini

Re: [Rd] Problems with Windows Cross compile

2005-12-20 Thread Jun Yan
I've seen that error before. It has to do with the setup of R_EXE. A current linux R is required. The following order worked for me: make linuxR make LinuxFresh=YES mkrules make R Jun On Tue, 20 Dec 2005, Warnes, Gregory R wrote: > > Well, I'm finally getting around to setting up a cross-comp

[Rd] pmin(), pmax() - slower than necessary for common cases

2005-12-20 Thread Martin Maechler
A few hours ago, I was making a small point on the R-SIG-robust mailing list on the point that ifelse() was not too efficient in a situation where pmax() could easily be used instead. However, this has reminded me of some timing experiments that I did 13 years ago with S-plus -- where I found th

[Rd] Problems with Windows Cross compile

2005-12-20 Thread Warnes, Gregory R
Well, I'm finally getting around to setting up a cross-compiler for Windows on my local Linux box. I'm using the Yan & Rossini's docuimentation and the latest 'http://cran.r-project.org/doc/contrib/Makefile-rcb' , which is working of the R-2.2.0 sources. After discovering that "cp -p" doesn'

Re: [Rd] 2 x 2 chisq.test (PR#8415)

2005-12-20 Thread Thomas Lumley
This is the same as PR#8265, which was reported two months ago by someone else from syd.odn.ne.jp. It still isn't a bug. According to Brian Ripley's response at that time, "almost all" the sources he checked gave the correction that R uses. -thomas On Tue, 20 Dec 2005, [EMAIL PROTECT

Re: [Rd] 2 x 2 chisq.test (PR#8415)

2005-12-20 Thread ripley
This is the same as PR#8265, from a person also not giving his/her name but sharing your ISP. Please don't submit a repeat, as the FAQ asks. After last time this was raised, I checked Yates' original paper and Fisher's book and it seems that R's formula follows what they say. Do remember that

[Rd] 2 x 2 chisq.test (PR#8415)

2005-12-20 Thread cig69410
Full_Name: nobody Version: 2.2.0 OS: any Submission from: (NULL) (219.66.34.183) 2 x 2 table, such as > x [,1] [,2] [1,] 10 12 [2,] 11 13 > chisq.test(x) Pearson's Chi-squared test with Yates' continuity correction data: x X-squared = 0.0732, df = 1, p-value = 0

Re: [Rd] Overlaying lattice plots

2005-12-20 Thread Hillary, Richard M
There seems to be a problem here, probably of my own making... flqs <- FLQuants(list(observed=obs, fitted=fits)) xyplot(data~age,data=flqs) Error in tmp[subset] : object is not subsettable ? -Original Message- From: ernesto [mailto:[EMAIL PROTECTED] Sent: 20 December 2005 10:32 To:

Re: [Rd] Overlaying lattice plots - SORRY, WRONG MAILING LIST ADDRESS

2005-12-20 Thread ernesto
ernesto wrote: >Hillary, Richard M wrote: > > > >>Morning chaps, I have a little question for your capable minds... Say >>I have an observed and predicted set of quants (in my case, length >>frequencies by year and age/length), is there a way to use lattice >>plots to plot the observed and predi

Re: [Rd] Overlaying lattice plots

2005-12-20 Thread Hillary, Richard M
Excellent, thanks man! Rich -Original Message- From: ernesto [mailto:[EMAIL PROTECTED] Sent: 20 December 2005 10:32 To: Hillary, Richard M; Iago Mosqueira; Mailing List R; R-devel Subject: Re: Overlaying lattice plots Hillary, Richard M wrote: > Morning chaps, I have a little question

Re: [Rd] Overlaying lattice plots

2005-12-20 Thread ernesto
Hillary, Richard M wrote: > Morning chaps, I have a little question for your capable minds... Say > I have an observed and predicted set of quants (in my case, length > frequencies by year and age/length), is there a way to use lattice > plots to plot the observed and predicted data together, pane

Re: [Rd] SVN-REVSION altered when building R-devel out of tree from last snapshot

2005-12-20 Thread Martin Maechler
> "Herve" == Herve Pages <[EMAIL PROTECTED]> > on Mon, 19 Dec 2005 17:10:58 -0800 writes: Herve> Hi, Herve> Today I downloaded and compiled the last R-devel snapshot. Herve> The SVN-REVISION in the tarball contains the following: Herve> Revision: 36792 Herve> Last