Running examples in 'occupancy-Ex.R' failed
The error most likely occurred in:

> ### Name: sample.ballbin
> ### Title: Generates simulations from the extended balls-in-bins process
> ### Aliases: sample.ballbin print.ballbin plot.ballbin summary.ballbin
> ###   print.summary.ballbin plot.summary.ballbin
> 
> ### ** Examples
> 
> 
> d <- sample.ballbin(12, 10, 4, .4)
> print(d)

      Extended Balls-in-Bins Process 
 
Process with 10 balls randomly allocated to 4 bins, with occupancy probability = 0.4 

 
           Ball[1] Ball[2] Ball[3] Ball[4] Ball[5] Ball[6] Ball[7] Ball[8]
Sample[1]       NA      NA      NA       1      NA      NA      NA       3
Sample[2]       NA       3       1      NA      NA      NA      NA      NA
Sample[3]       NA      NA       1       1      NA      NA       2      NA
Sample[4]       NA      NA       1      NA      NA       1      NA       3
Sample[5]        2      NA      NA      NA      NA      NA       2       4
Sample[6]       NA      NA      NA       4       1      NA      NA      NA
Sample[7]        3       2      NA      NA      NA       2      NA      NA
Sample[8]       NA       2       1      NA       3      NA       2      NA
Sample[9]        2       4      NA       3       1      NA      NA       4
Sample[10]      NA       3      NA      NA      NA       1      NA      NA
Sample[11]       4       4       4      NA      NA      NA       3       2
Sample[12]       3       3       3      NA       2      NA      NA      NA
           Ball[9] Ball[10]
Sample[1]        2       NA
Sample[2]       NA       NA
Sample[3]        1       NA
Sample[4]        2        2
Sample[5]       NA        3
Sample[6]       NA       NA
Sample[7]       NA       NA
Sample[8]        3       NA
Sample[9]        1       NA
Sample[10]      NA        1
Sample[11]      NA       NA
Sample[12]      NA       NA

> plot(d)
Error in plot.ballbin(d) : 
  Error: Plotting a 'ballbins' object requires the ggplot2 package
Calls: plot -> plot.ballbin
Execution halted