Your code runs fine on my windows hp machine ( XP - sp2, R.2.9.1 )

> x <- foreach(i = 1:3) %do% sqrt(i)
> x
[[1]]
[1] 1

[[2]]
[1] 1.414214

[[3]]
[1] 1.732051


Are you on Vista , maybe ? 

~~~~~~~~ 
Robert  Kinley

 



Michael Knudsen <micknudsen@gmail.com> 
Sent by: r-help-bounces@r-project.org
20/07/2009 14:23

To
Olivier ETERRADOSSI <olivier.eterradossi@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
ETERRADOSSI<olivier.eterradossi@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 is slowly waking up now, so cross your fingers
:-)

-- 
Michael Knudsen
micknudsen@gmail.com
http://lifeofknudsen.blogspot.com/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


	[[alternative HTML version deleted]]


