[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-mac
Subject:    Re: [R-SIG-Mac] object '.lec.Random.seed.table' not found
From:       Hana Sevcikova <hanas () uw ! edu>
Date:       2012-02-02 6:13:54
Message-ID: 4F2A29A2.1020004 () uw ! edu
[Download RAW message or body]

Terry,

The function clusterSetupRNG is using the RNGstream from rlecuyer 
package by default. There was a bug in the latest version of the 
rlecuyer package (0.3-2). A corrected version (0.3-3) is now sitting in 
the queue to be published on CRAN. So it should become available within 
the next few days.

Hana

On 2/1/12 8:21 PM, Chien Lin Terry Huang wrote:
> Hi all,
>
> I attempted to install "RSPRNG" package in OSX Lion by just selecting 
> it from the Package Installer menu, and later realised it was a stupid 
> idea! However, after the installation failed, the error "object 
> '.lec.Random.seed.table' not found" appeared when I run the following 
> code:
>
> test = function( iter , cores )
> {
>     cl = makeCluster( cores , type = "SOCK" );
>     clusterSetupRNG( cl );
>     registerDoSNOW( cl );
>
>
>     output = foreach( i = 1:iter , .combine = "rbind") %dopar%
>     {
>         runif( 1 , 0 , 1 );
>     }
>
>     stopCluster( cl );
>
> output;
> }
>
> test( 100 , 2 )
>
> The reason that I wanted to install "RSPRNG", is because I seemed to 
> get the same "random" number stream every time when I run the code above.
>
> My question is, 1) how can I fix the error. 2) How can I avoid getting 
> the same random number stream for each nodes?
>
> Many thanks
> Terry
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic