[R] How to construct a valid seed for l'Ecuyer's method with given .Random.seed?

Marius Hofert marius.hofert at math.ethz.ch
Wed Jan 23 08:22:22 CET 2013


I updated to the latest CRAN versions of 'rlecuyer', 'Rmpi', and 'snow':
    
,----[ sessionInfo() ]
| ...
| other attached packages:
| [1] rlecuyer_0.3-3 Rmpi_0.6-1     snow_0.3-10   
| ...
`----

But I still obtain:

,----
| Error in .lec.SetPackageSeed(seed) : 
|   Seed[1] >= -1065242851, Seed is not set.
`----

when executing

,----
| library(snow)
| RNGkind("L'Ecuyer-CMRG")
| cl <- makeCluster(parallel::detectCores(), type="MPI")
| .t <- snow::clusterSetupRNG(cl, seed=.Random.seed[2:7])
| stopCluster(cl)
`----



More information about the R-help mailing list