Re: [R] I might be dumb : a simple question about foreach

2009-07-23 Thread Daya Atapattu
This problem is due to a bug in the iterators package. It has been fixed in version 1.0.2 of iterators, which is on CRAN now. - Daya Daya Atapattu Revolution Computing Olivier ETERRADOSSI wrote: Many thanks David for making the connection betweeen the two reports. If I understand, other

Re: [R] I might be dumb : a simple question about foreach

2009-07-21 Thread Olivier ETERRADOSSI
Many thanks David for making the connection betweeen the two reports. If I understand, other french users may have faced the same problem... However I'll wait until it's solved to have a look at foreach. Regards. Olivier David M Smith a écrit : A user in Japan reported a similar problem on the

[R] I might be dumb : a simple question about foreach

2009-07-20 Thread Olivier ETERRADOSSI
Hi list, My attention was drawn to the foreach package by recent posts...I decided to have a look... I'm using R.2.9.1 on Windows, I have downloaded the foreach package today (v 1.2.1), together with iterators (v. 1.0.1) and codetools (v.0.2-2). Full of hope I try the most simple thing of all

Re: [R] I might be dumb : a simple question about foreach

2009-07-20 Thread Michael Knudsen
On Mon, Jul 20, 2009 at 2:48 PM, Olivier ETERRADOSSIolivier.eterrado...@ema.fr wrote:  x - foreach(i = 1:3) %do% sqrt(i) and get : Erreur dans sqrt(i) : indice hors limites ( i.e. error in sqrt(i) : index out of bounds) I once got similar errors because I didn't encapsulate the part af

Re: [R] I might be dumb : a simple question about foreach

2009-07-20 Thread Olivier ETERRADOSSI
Thanks Michael I already tried the curly brackets before my first post... no hope, it didn't change anything. Turning %do% into %dopar% didn't work as well... Do you suggest some Windows related behaviour ? regards, Olivier Michael Knudsen-2 wrote: On Mon, Jul 20, 2009 at 2:48 PM, Olivier

Re: [R] I might be dumb : a simple question about foreach

2009-07-20 Thread Michael Knudsen
On Mon, Jul 20, 2009 at 3:14 PM, Olivier ETERRADOSSIolivier.eterrado...@ema.fr wrote: Do you suggest some Windows related behaviour ? I haven't used Windows for more than ten years, so unfortunately I have no clue whatsoever. Maybe there are some Windows experts here who can help you. America

Re: [R] I might be dumb : a simple question about foreach

2009-07-20 Thread Robert Kinley
/07/2009 14:23 To Olivier ETERRADOSSI olivier.eterrado...@ema.fr cc r-help@r-project.org Subject Re: [R] I might be dumb : a simple question about foreach On Mon, Jul 20, 2009 at 3:14 PM, Olivier ETERRADOSSIolivier.eterrado...@ema.fr wrote: Do you suggest some Windows related behaviour ? I

Re: [R] I might be dumb : a simple question about foreach

2009-07-20 Thread Olivier ETERRADOSSI
be dumb : a simple question about foreach On Mon, Jul 20, 2009 at 3:14 PM, Olivier ETERRADOSSIolivier.eterrado...@ema.fr wrote: Do you suggest some Windows related behaviour ? I haven't used Windows for more than ten years, so unfortunately I have no clue whatsoever. Maybe

Re: [R] I might be dumb : a simple question about foreach

2009-07-20 Thread David M Smith
A user in Japan reported a similar problem on the Revolutions blog ( http://bit.ly/FKP2I ), and my best guess is that it's an (unintended!) effect of using locales. The developers in New Haven are looking at it, and I expect they'll be able to post an update to CRAN soon. # David Smith On Mon,