[R] package:AlgDesign and .Random.seed

Michael Kubovy kubovy at virginia.edu
Wed Mar 21 01:52:14 CET 2007


Dear r-helpers,

Could you please help me solve the following problem: When I run

require(AlgDesign)
trt <- LETTERS[1:5]
blk <- 10
trtblk <- 3
BIB <- optBlock(~., withinData = trt, blocksizes = rep(trtblk, blk))

In response to the last command, R complains:

Error in optBlock(~., withinData = trt, blocksizes = rep(trtblk, blk)) :
	object ".Random.seed" not found

The documentation of optBlock() in AlgDesign doesn't say that I  
needed to set .Random.seed. I thought it was initiated automatically  
at the beginning of a session. What am I missing?

 > sessionInfo()
R version 2.4.1 (2006-12-18)
i386-apple-darwin8.8.1

locale:
C

attached base packages:
[1] "grid"      "datasets"  "stats"     "graphics"  "grDevices"  
"utils"     "methods"   "base"

other attached packages:
    AlgDesign       xtable latticeExtra      lattice      
gridBase         MASS          JGR       iplots
      "1.0-7"      "1.4-3"      "0.1-4"    "0.14-16"      "0.4-3"      
"7.2-32"     "1.4-15"      "1.0-5"
       JavaGD        rJava
      "0.3-6"     "0.4-14"





_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/



More information about the R-help mailing list