Re: [Rd] fix for save()'ing RAW on PPC (and other big endian platforms)

2005-06-04 Thread Peter Dalgaard
Byron Ellis <[EMAIL PROTECTED]> writes: > OutByte should take a byte, not an int. Writing the first byte of an > int is only going to work on little endian systems. > > serialize.c:262 > -static void OutByte(R_outpstream_t stream, int i) > +static void OutByte(R_outpstream_t stream, Rbyte i) Tha

[Rd] fix for save()'ing RAW on PPC (and other big endian platforms)

2005-06-04 Thread Byron Ellis
OutByte should take a byte, not an int. Writing the first byte of an int is only going to work on little endian systems. serialize.c:262 -static void OutByte(R_outpstream_t stream, int i) +static void OutByte(R_outpstream_t stream, Rbyte i) --- Byron Ellis ([EMAIL PROTECTED]) "Oook" -- The L

[Rd] Characters in lists.

2005-06-04 Thread James Bullard
Hi all, this should be a relatively straightforward question. I am constructing an R list in C which will contain both Integers and Strings (by string I mean in C I have const char* whose values I want passed through to R) The Integers are easy. I do something like this: PROTECT(tmp = NEW_INTE

Re: [Rd] Re: [R] p-value > 1 in fisher.test()

2005-06-04 Thread Martin Maechler
> "UweL" == Uwe Ligges <[EMAIL PROTECTED]> > on Sat, 04 Jun 2005 11:43:34 +0200 writes: UweL> (Ted Harding) wrote: >> On 03-Jun-05 Ted Harding wrote: >> >>> And on mine >>> >>> (A: PII, Red Had 9, R-1.8.0): >>> >>> ff <- c(0,10,250,5000); dim(ff) <- c

Re: [Rd] documentation source diff...

2005-06-04 Thread Dan Bolser
On Sat, 4 Jun 2005, Uwe Ligges wrote: >Dan Bolser wrote: > >> Hi, I forgot the name of the function 'colSums', and expected to be able >> to find it through the 'see also' section of the documentation for the >> 'sum' function. > >Good idea, I think it might be worth to be added to ?apply as well.

[Rd] Re: [R] p-value > 1 in fisher.test()

2005-06-04 Thread Uwe Ligges
(Ted Harding) wrote: On 03-Jun-05 Ted Harding wrote: And on mine (A: PII, Red Had 9, R-1.8.0): ff <- c(0,10,250,5000); dim(ff) <- c(2,2); 1-fisher.test(ff)$p.value [1] 1.268219e-11 (B: PIII, SuSE 7.2, R-2.1.0beta): ff <- c(0,10,250,5000); dim(ff) <- c(2,2); 1-fisher.test(ff)$p.value [1]

Re: [Rd] documentation source diff...

2005-06-04 Thread Uwe Ligges
Dan Bolser wrote: Hi, I forgot the name of the function 'colSums', and expected to be able to find it through the 'see also' section of the documentation for the 'sum' function. Good idea, I think it might be worth to be added to ?apply as well. Here is the diff I made of the altered docume