Error(s) in re-building vignettes:
  ...
--- re-building ‘glmdisc.Rmd’ using rmarkdown
Iteration 1 ended with a performance of aic = -Inf
Iteration 2 ended with a performance of aic = -133.534846762002
Iteration 3 ended with a performance of aic = -125.916744313851
Iteration 4 ended with a performance of aic = -132.973043490361
Iteration 5 ended with a performance of aic = -136.116351075962
Iteration 6 ended with a performance of aic = -127.302026059873
Iteration 7 ended with a performance of aic = -140.718584106507
Iteration 8 ended with a performance of aic = -123.953430302959
Iteration 9 ended with a performance of aic = -142.608822794377
Iteration 10 ended with a performance of aic = -131.20597331344
Iteration 11 ended with a performance of aic = -132.802578665382
Iteration 12 ended with a performance of aic = -133.331017116833
Iteration 13 ended with a performance of aic = -138.256988558153
Iteration 14 ended with a performance of aic = -122.119100969847
Iteration 15 ended with a performance of aic = -130.529996058351
Iteration 16 ended with a performance of aic = -141.654522829883
Iteration 17 ended with a performance of aic = -136.688693734316
Iteration 18 ended with a performance of aic = -144.13038105172
Iteration 19 ended with a performance of aic = -144.558087282035
Iteration 20 ended with a performance of aic = -135.296745257481
Iteration 21 ended with a performance of aic = -137.596858643579
Iteration 22 ended with a performance of aic = -136.973389149489
Iteration 23 ended with a performance of aic = -138.507460648534
Iteration 24 ended with a performance of aic = -137.615470035128
Iteration 25 ended with a performance of aic = -138.052316231918
Iteration 26 ended with a performance of aic = -128.543724122237
Quitting from lines 298-301 (glmdisc.Rmd) 
Error: processing vignette 'glmdisc.Rmd' failed with diagnostics:
subscript out of bounds
--- failed re-building ‘glmdisc.Rmd’

SUMMARY: processing the following file failed:
  ‘glmdisc.Rmd’

Error: Vignette re-building failed.
Execution halted