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

> ### Name: compas
> ### Title: Simulation of species community data along gradients
> ### Aliases: compas
> 
> ### ** Examples
> 
> # 1 dimension.
> coo <- seq(10, 90, 10)
> compas(S=30, dims=1, am=2, beta.R=2, coords=coo, 
+        n.quanti=5,  n.quali=0.1, add1=0.1)
       sp.1 sp.2 sp.3 sp.4 sp.5 sp.6 sp.7 sp.8 sp.9 sp.10 sp.11 sp.12 sp.13
site.1    0    0    0    0    0    0    0    0    0     0     0     0     2
site.2    0    0    0    0    0    0    0    0    0     0     0     0     0
site.3    0    0    2    0    0    0    0    0    0     1     0     0     0
site.4    1   10    2    0    0    0    0    2   23    12     0     0     0
site.5   23   12    1    0    0    0    0    0    6    26     0     0     0
site.6    0   10    0    2    2    4    0   13    0     8     0     0     0
site.7    0    0    0   24    3    2    0    0   13    11    11     2     0
site.8    0    0    0   25    0    6    5    0    0     0    15     0     0
site.9    0    0    0    9    0   19    0    0    0     0     1     0     0
       sp.14 sp.15 sp.16 sp.17 sp.18 sp.19
site.1     0     0     2     0     0     0
site.2     0     8     0     0     0     0
site.3     0    18     0     0     0     0
site.4     0    35     0     0     0     0
site.5     0     0     0     0     1     0
site.6     0     0     0     0     0     1
site.7    10     0     0     0     0     0
site.8     0     0     0     0     0     0
site.9    46     0     0    20     0     0
> 	
> # 2 dimensions.
> coo2 <- cbind(coo, coo)
> compas(S=50, dims=2, am=c(2,2), beta.R=c(1,1), coords=coo2, 
+        n.quanti=5, n.quali=0.1, add1=0.1)
       sp.1 sp.2 sp.3 sp.4 sp.5 sp.6 sp.7 sp.8 sp.9 sp.10 sp.11 sp.12
site.1    0    3    1    6    0    0    0    0    0     0     1     0
site.2    0    0    8   25    0    0    2    0    0     2     3     0
site.3    0    0    4    1    1    2    0    0    0     0     3     0
site.4    0    0    0    0    0    1    0    0    0     0     5     0
site.5    0    0    0    0    1    0    0    0    0     0    10     0
site.6    1    0    0    0    1    0    0    0    0     0     0     0
site.7    3    0    0    0    0    1    0    0    0     0     5     1
site.8    0    0    0    0    0    0    0    0    0     0     0     0
site.9    0    0    0    0    0    0    0    8    3     0     3     0
> 
> # 2 dimensions. Homogeneous and clumped species distributions.
> # Try a few times.
> coo.grid <- expand.grid(seq(10,90,10), seq(10,90,10))
> plot(coo.grid, xlim=c(0,100), ylim=c(0,100))
> 
> mat1 <- compas(S=60, dims=2, am=c(2,2), clump=1, beta.R=c(2,2), coords=coo.grid,
+                n.quanti=5, n.quali=0.1, add1=0.1)
Error in data.frame(..., check.names = FALSE) : 
  arguments imply differing number of rows: 81, 2
Calls: compas -> cbind -> cbind -> data.frame
Execution halted