Re: [Rd] [R] R compile on AIX 5.2

2006-02-06 Thread Matthew Beason
Professor Ripley, Following your advice, I am now using an updated version of gcc (4.0.2 to be exact) as well as a true fortran compiler (XL Fortran Compiler v10.1.0.0 from IBM). I am still experiencing difficulty in running "make" after a successful "configure". Any additional insight you

Re: [Rd] invalid graphics state using dev.print

2006-02-06 Thread Simon Urbanek
Paul, On Feb 6, 2006, at 5:24 PM, Paul Roebuck wrote: > Tried on R-Sig-Mac with no responses, but I need some kind of answer. > [...] > Does the following work on your system? Interesting, no, it doesn't either. For png and pdf I use Quartz + quartz.save (it produces much nicer results) so I d

Re: [Rd] match gets confused by S4 objects

2006-02-06 Thread Prof Brian Ripley
An S4 object is just a list with attributes, so a vector type. match() works with all vector types including lists, as you found out (or could have read). If in the future those proposing it do re-implement an S4 object as an new SEXP then this will change, but for now the cost of detecting ob

[Rd] match gets confused by S4 objects

2006-02-06 Thread Seth Falcon
If one accidentally calls match(x, obj), where obj is any S4 instance, the result is NA. I was expecting an error because, in general, if a match method is not defined for a particular S4 class, I don't know what a reasonable default could be. Specifically, here's what I see setClass("FOO", re

Re: [Rd] saving PDF with multiple diagrams results in crash (PR#8569)

2006-02-06 Thread Simon Urbanek
On Feb 6, 2006, at 1:11 PM, [EMAIL PROTECTED] wrote: > Full_Name: Alexander Holzbach > Version: 2.2.0 > OS: Mac OS X 10.3.9 > Submission from: (NULL) (129.13.186.1) > > > when i build an area with multiple diagrams (par(mfrow=c(1,3)) ) > and try to save > this to a pdf via "save as.." or by s

[Rd] saving PDF with multiple diagrams results in crash (PR#8569)

2006-02-06 Thread Alexander . Holzbach
Full_Name: Alexander Holzbach Version: 2.2.0 OS: Mac OS X 10.3.9 Submission from: (NULL) (129.13.186.1) when i build an area with multiple diagrams (par(mfrow=c(1,3)) ) and try to save this to a pdf via "save as.." or by setting pdf("filename") r crashes reproducable. ___

Re: [Rd] The install.R and R_PROFILE.R files

2006-02-06 Thread Seth Falcon
On 5 Feb 2006, [EMAIL PROTECTED] wrote: > I had a bumpy ride with this one. > > Ruuid/src/Makefile.win refers to src/include, which is not in a > binary distribution so cannot be installed from an installed version > of R 2.2.1. (That's a bug report.) Thanks for the report, this has been fixed in

[Rd] extending "list" in S4: loss of element names

2006-02-06 Thread Vincent Carey 525-2265
using R 2.3 of 1/31/06 > new("list") list() > new("list", list(a=1)) $a [1] 1 > setClass("listlike", contains="list") [1] "listlike" > new("listlike", list(a=1)) An object of class "listlike" [[1]] [1] 1 Why does the list in the second construction lose the element name? A workaround is to end

Re: [Rd] Troubles with the function rmultinom.c of the R's Random Number Generator

2006-02-06 Thread Hin-Tak Leung
Sophie Ancelet wrote: > Thank you for the answer. However, I sought in Doc. Writing R > extensions, in particular in the paragraph 5.6 "Calling C from FORTRAN > and vice versa" (page 67) but I did not find anything which could help me to > correct my code. Indeed, rmultinom.c is a particular functi

Re: [Rd] Troubles with the function rmultinom.c of the R's Random Number Generator

2006-02-06 Thread Sophie Ancelet
Thank you for the answer. However, I sought in Doc. Writing R extensions, in particular in the paragraph 5.6 "Calling C from FORTRAN and vice versa" (page 67) but I did not find anything which could help me to correct my code. Indeed, rmultinom.c is a particular function since arrays are passed in

Re: [Rd] pbinom with size argument 0 (PR#8560)

2006-02-06 Thread Ted Harding
On 05-Feb-06 [EMAIL PROTECTED] wrote: > Hello all > > A pragmatic argument for allowing size=3D=3D0 is the situation where > the size is in itself a random variable (that's how I stumbled over > the inconsistency, by the way). > > For example, in textbooks on probability it is stated that: > >

Re: [Rd] pbinom with size argument 0 (PR#8560)

2006-02-06 Thread Prof Brian Ripley
On Sun, 5 Feb 2006, Peter Dalgaard wrote: > P Ehlers <[EMAIL PROTECTED]> writes: > >> I prefer a (consistent) NaN. What happens to our notion of a >> Binomial RV as a sequence of Bernoulli RVs if we permit n=0? >> I have never seen (nor contemplated, I confess) the definition >> of a Bernoulli RV

Re: [Rd] Troubles with Fortran and C (was with the function rmultinom.c of the R's Random Number Generator)

2006-02-06 Thread Sophie Ancelet
Thank you for the answer. However, I sought in Doc. Writing R extensions, in particular in the paragraph 5.6 "Calling C from FORTRAN and vice versa" (page 67) but I did not find anything which could help me to correct my code. Indeed, rmultinom.c is a particular function since arrays are passed i

Re: [Rd] pbinom with size argument 0 (PR#8560)

2006-02-06 Thread Peter Dalgaard
P Ehlers <[EMAIL PROTECTED]> writes: > I prefer a (consistent) NaN. What happens to our notion of a > Binomial RV as a sequence of Bernoulli RVs if we permit n=0? > I have never seen (nor contemplated, I confess) the definition > of a Bernoulli RV as anything other than some dichotomous-outcome >