Re: [Rd] Error in FrF2 example on Mac OS

2009-03-25 Thread Ulrike Grömping
-- Original Message --- From: Simon Urbanek To: Ulrike Grömping Cc: r-devel@r-project.org Sent: Wed, 25 Mar 2009 10:32:59 -0400 Subject: Re: [Rd] Error in FrF2 example on Mac OS > On Mar 24, 2009, at 10:41 , Ulrike Grömping wrote: > > > > > >

Re: [Rd] Error in FrF2 example on Mac OS

2009-03-25 Thread Simon Urbanek
On Mar 24, 2009, at 10:41 , Ulrike Grömping wrote: Petr Savicky wrote: On Tue, Mar 24, 2009 at 02:45:57PM +0100, Uwe Ligges wrote: gives the custom error message "nruns must be a power of 2.", which is generated in the first check within function FrF2: if (!is.null(nruns)){ k <-

Re: [Rd] Error in FrF2 example on Mac OS

2009-03-24 Thread Ulrike Grömping
Petr Savicky wrote: > > On Tue, Mar 24, 2009 at 07:41:31AM -0700, Ulrike Grömping wrote: >> > Probably, k is needed also later. Assumig that 2^k works correctly, >> > the following could be sufficient >> > >> >if (!is.null(nruns)){ >> > k <- round(log2(nruns)) >> > if (!2^k==nr

Re: [Rd] Error in FrF2 example on Mac OS

2009-03-24 Thread Petr Savicky
On Tue, Mar 24, 2009 at 07:41:31AM -0700, Ulrike Grömping wrote: > > Probably, k is needed also later. Assumig that 2^k works correctly, > > the following could be sufficient > > > >if (!is.null(nruns)){ > > k <- round(log2(nruns)) > > if (!2^k==nruns) stop("nruns must be a power o

Re: [Rd] Error in FrF2 example on Mac OS

2009-03-24 Thread Ulrike Grömping
Petr Savicky wrote: > > On Tue, Mar 24, 2009 at 02:45:57PM +0100, Uwe Ligges wrote: >> >gives the custom error message "nruns must be a power of 2.", which is >> >generated in the first check within function FrF2: >> > >> >if (!is.null(nruns)){ >> > k <- floor(log2(nruns)) >> >

Re: [Rd] Error in FrF2 example on Mac OS

2009-03-24 Thread Ulrike Grömping
Thanks, Uwe, I think that's it! I'll include your fix in the next update. Regards, Ulrike -- Original Message --- From: Uwe Ligges To: Ulrike Grömping Cc: r-devel@r-project.org Sent: Tue, 24 Mar 2009 14:45:57 +0100 Subject: Re: [Rd]  Error in FrF2 example

Re: [Rd] Error in FrF2 example on Mac OS

2009-03-24 Thread Petr Savicky
On Tue, Mar 24, 2009 at 02:45:57PM +0100, Uwe Ligges wrote: > >gives the custom error message "nruns must be a power of 2.", which is > >generated in the first check within function FrF2: > > > >if (!is.null(nruns)){ > > k <- floor(log2(nruns)) > > if (!2^k==nruns) stop("nruns must

Re: [Rd] Error in FrF2 example on Mac OS

2009-03-24 Thread Uwe Ligges
Ulrike Grömping wrote: Dear all, I just noticed that the 0.9 update for FrF2 did not work out for Mac OS due to an error in an example that ran without error on all other platforms. I do not find any reason for this. In the past, umlauts or tab characters have sometimes been an issue, but I di