Running examples in ‘planor-Ex.R’ failed
The error most likely occurred in:

> ### Name: planor.factors
> ### Title: Create an Object of Class designfactors
> ### Aliases: planor.factors
> ### Keywords: design
> 
> ### ** Examples
> planor.factors(c("A","B","C","P"),c(2,3,6,3))
An object of class "designfactors"
Slot "fact.info":
  nlev block ordered model basic dummy
A    2 FALSE   FALSE    NA    NA FALSE
B    3 FALSE   FALSE    NA    NA FALSE
C    6 FALSE   FALSE    NA    NA FALSE
P    3 FALSE   FALSE    NA    NA FALSE

Slot "pseudo.info":
    parent nlev block ordered model basic dummy
A        1    2 FALSE   FALSE    NA    NA FALSE
B        2    3 FALSE   FALSE    NA    NA FALSE
C_1      3    2 FALSE   FALSE    NA    NA FALSE
C_2      3    3 FALSE   FALSE    NA    NA FALSE
P        4    3 FALSE   FALSE    NA    NA FALSE

Slot "levels":
$A
[1] 1 2

$B
[1] 1 2 3

$C
[1] 1 2 3 4 5 6

$P
[1] 1 2 3


> planor.factors(LETTERS[1:12],2)
An object of class "designfactors"
Slot "fact.info":
  nlev block ordered model basic dummy
A    2 FALSE   FALSE    NA    NA FALSE
B    2 FALSE   FALSE    NA    NA FALSE
C    2 FALSE   FALSE    NA    NA FALSE
D    2 FALSE   FALSE    NA    NA FALSE
E    2 FALSE   FALSE    NA    NA FALSE
F    2 FALSE   FALSE    NA    NA FALSE
G    2 FALSE   FALSE    NA    NA FALSE
H    2 FALSE   FALSE    NA    NA FALSE
I    2 FALSE   FALSE    NA    NA FALSE
J    2 FALSE   FALSE    NA    NA FALSE
K    2 FALSE   FALSE    NA    NA FALSE
L    2 FALSE   FALSE    NA    NA FALSE

Slot "pseudo.info":
  parent nlev block ordered model basic dummy
A      1    2 FALSE   FALSE    NA    NA FALSE
B      2    2 FALSE   FALSE    NA    NA FALSE
C      3    2 FALSE   FALSE    NA    NA FALSE
D      4    2 FALSE   FALSE    NA    NA FALSE
E      5    2 FALSE   FALSE    NA    NA FALSE
F      6    2 FALSE   FALSE    NA    NA FALSE
G      7    2 FALSE   FALSE    NA    NA FALSE
H      8    2 FALSE   FALSE    NA    NA FALSE
I      9    2 FALSE   FALSE    NA    NA FALSE
J     10    2 FALSE   FALSE    NA    NA FALSE
K     11    2 FALSE   FALSE    NA    NA FALSE
L     12    2 FALSE   FALSE    NA    NA FALSE

Slot "levels":
$A
[1] 1 2

$B
[1] 1 2

$C
[1] 1 2

$D
[1] 1 2

$E
[1] 1 2

$F
[1] 1 2

$G
[1] 1 2

$H
[1] 1 2

$I
[1] 1 2

$J
[1] 1 2

$K
[1] 1 2

$L
[1] 1 2


> planor.factors(12,2)
An object of class "designfactors"
Slot "fact.info":
  nlev block ordered model basic dummy
A    2 FALSE   FALSE    NA    NA FALSE
B    2 FALSE   FALSE    NA    NA FALSE
C    2 FALSE   FALSE    NA    NA FALSE
D    2 FALSE   FALSE    NA    NA FALSE
E    2 FALSE   FALSE    NA    NA FALSE
F    2 FALSE   FALSE    NA    NA FALSE
G    2 FALSE   FALSE    NA    NA FALSE
H    2 FALSE   FALSE    NA    NA FALSE
I    2 FALSE   FALSE    NA    NA FALSE
J    2 FALSE   FALSE    NA    NA FALSE
K    2 FALSE   FALSE    NA    NA FALSE
L    2 FALSE   FALSE    NA    NA FALSE

Slot "pseudo.info":
  parent nlev block ordered model basic dummy
A      1    2 FALSE   FALSE    NA    NA FALSE
B      2    2 FALSE   FALSE    NA    NA FALSE
C      3    2 FALSE   FALSE    NA    NA FALSE
D      4    2 FALSE   FALSE    NA    NA FALSE
E      5    2 FALSE   FALSE    NA    NA FALSE
F      6    2 FALSE   FALSE    NA    NA FALSE
G      7    2 FALSE   FALSE    NA    NA FALSE
H      8    2 FALSE   FALSE    NA    NA FALSE
I      9    2 FALSE   FALSE    NA    NA FALSE
J     10    2 FALSE   FALSE    NA    NA FALSE
K     11    2 FALSE   FALSE    NA    NA FALSE
L     12    2 FALSE   FALSE    NA    NA FALSE

Slot "levels":
$A
[1] 1 2

$B
[1] 1 2

$C
[1] 1 2

$D
[1] 1 2

$E
[1] 1 2

$F
[1] 1 2

$G
[1] 1 2

$H
[1] 1 2

$I
[1] 1 2

$J
[1] 1 2

$K
[1] 1 2

$L
[1] 1 2


> planor.factors( c("A","B","Block"), 3, block=~Block)
An object of class "designfactors"
Slot "fact.info":
      nlev block ordered model basic dummy
A        3 FALSE   FALSE    NA    NA FALSE
B        3 FALSE   FALSE    NA    NA FALSE
Block    3  TRUE   FALSE    NA    NA FALSE

Slot "pseudo.info":
      parent nlev block ordered model basic dummy
A          1    3 FALSE   FALSE    NA    NA FALSE
B          2    3 FALSE   FALSE    NA    NA FALSE
Block      3    3  TRUE   FALSE    NA    NA FALSE

Slot "levels":
$A
[1] 1 2 3

$B
[1] 1 2 3

$Block
[1] 1 2 3


> zz <- planor.factors( c("A","B","Block"), c(2,3,5))
> zz@levels$A <- c("plus","moins")
> planor.factors(factors=list(A=c("plus","moins"), B=1:3, Block=1:5))
An object of class "designfactors"
Slot "fact.info":
      nlev block ordered model basic dummy
A        2 FALSE   FALSE    NA    NA FALSE
B        3 FALSE   FALSE    NA    NA FALSE
Block    5 FALSE   FALSE    NA    NA FALSE

Slot "pseudo.info":
      parent nlev block ordered model basic dummy
A          1    2 FALSE   FALSE    NA    NA FALSE
B          2    3 FALSE   FALSE    NA    NA FALSE
Block      3    5 FALSE   FALSE    NA    NA FALSE

Slot "levels":
$A
[1] "plus"  "moins"

$B
[1] 1 2 3

$Block
[1] 1 2 3 4 5


> AB <- data.frame( A=c(rep(c("a","b"),3)), B=rep(c("z","zz","zzz"),rep(2,3)), C=1:6)
> planor.factors(factors=AB)
Error in data.frame(nlev = FACT.nlev, block = block, ordered = ordered,  : 
  arguments imply differing number of rows: 0, 1
Calls: planor.factors -> data.frame
Execution halted