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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: PMplot
> ### Title: Level Plot of a Matrix of p-values.
> ### Aliases: PMplot
> 
> ### ** Examples
> 
>   library(predictmeans)
>   set.seed(2013)
>   pvalues <- runif(28)
>   pmatrix <- matrix(0,8,8)
>   pmatrix[lower.tri(pmatrix)] <- pvalues
>   round(pmatrix, 4)
       [,1]   [,2]   [,3]   [,4]   [,5]   [,6]   [,7] [,8]
[1,] 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000    0
[2,] 0.4633 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000    0
[3,] 0.9523 0.7986 0.0000 0.0000 0.0000 0.0000 0.0000    0
[4,] 0.7849 0.9342 0.8579 0.0000 0.0000 0.0000 0.0000    0
[5,] 0.7635 0.8197 0.6238 0.0773 0.0000 0.0000 0.0000    0
[6,] 0.2522 0.0046 0.7151 0.3296 0.0745 0.0000 0.0000    0
[7,] 0.7263 0.2472 0.9783 0.5498 0.8099 0.4634 0.0000    0
[8,] 0.9132 0.7540 0.9412 0.0451 0.2713 0.1563 0.6729    0
>   PMplot(pmatrix)
dev.new(): using pdf(file="Rplots1.pdf")
> 
>   Oats$nitro <- factor(Oats$nitro)
>   fm <- lmer(yield ~ nitro*Variety+(1|Block/Variety), data=Oats)
>   predictout <- predictmeans(fm, "nitro:Variety", atvar="Variety", adj="BH", barplot=TRUE)
dev.new(): using pdf(file="Rplots2.pdf")
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <e2>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <80>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <98>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <e2>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <80>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <99>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <e2>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <80>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <98>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <e2>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <80>
Warning in title(...) :
  conversion failure on 'Adjusted p-value (by ‘BH’ method)' in 'mbcsToSbcs': dot substituted for <99>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <e2>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <80>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <98>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <e2>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <80>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <99>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <e2>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <80>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <98>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <e2>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <80>
Warning in title(...) :
  conversion failure on ' for Pairwise Comparison at Each Level of ‘Variety’' in 'mbcsToSbcs': dot substituted for <99>
dev.new(): using pdf(file="Rplots3.pdf")
Error in grid.Call.graphics(C_setviewport, vp, TRUE) : 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
Calls: predictmeans ... push.vp.vpTree -> push.vp -> push.vp.viewport -> grid.Call.graphics
Execution halted