Error(s) in re-building vignettes:
  ...
--- re-building 'dMod.Rmd' using rmarkdown
Loading required package: cOde

Attaching package: 'dMod'

The following object is masked from 'package:stats':

    profile


Attaching package: 'dplyr'

The following object is masked from 'package:dMod':

    combine

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

jakstat_8ccb23dc.c:6:20: warning: zero size arrays are an extension [-Wzero-length-array]
static double forc[0];
                   ^
jakstat_8ccb23dc.c:7:20: warning: zero size arrays are an extension [-Wzero-length-array]
static double cons[0];
                   ^
jakstat_8ccb23dc.c:7:15: warning: unused variable 'cons' [-Wunused-variable]
static double cons[0];
              ^
jakstat_8ccb23dc.c:8:15: warning: unused variable 'range' [-Wunused-variable]
static double range[2];
              ^
4 warnings generated.
jakstat_8ccb23dc_s.c:6:20: warning: zero size arrays are an extension [-Wzero-length-array]
static double forc[0];
                   ^
jakstat_8ccb23dc_s.c:7:20: warning: zero size arrays are an extension [-Wzero-length-array]
static double cons[0];
                   ^
jakstat_8ccb23dc_s.c:191:12: error: use of undeclared identifier 'NA'
         if(*t == NA & eventcounter[0] == 0) {
                  ^
jakstat_8ccb23dc_s.c:196:9: error: invalid operands to binary expression ('double' and 'double *')
         if(*t ==  & eventcounter[-1] == 0) {
            ~~ ^   ~~~~~~~~~~~~~~~~~~
jakstat_8ccb23dc_s.c:198:3: warning: array index -1 is before the beginning of the array [-Warray-bounds]
                eventcounter[-1] = 1.;
                ^            ~~
jakstat_8ccb23dc_s.c:8:1: note: array 'eventcounter' declared here
static double eventcounter[2];
^
3 warnings and 2 errors generated.
make[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:167: jakstat_8ccb23dc_s.o] Error 1
Warning in system(paste0(R.home(component = "bin"), "/R CMD SHLIB ", filename),  :
  running command '/home/hornik/tmp/R.check/r-devel-clang/Work/build/bin/R CMD SHLIB jakstat_8ccb23dc_s.c' had status 1
Quitting from lines 74-84 (dMod.Rmd) 
Error: processing vignette 'dMod.Rmd' failed with diagnostics:
'events$func' should be loaded  jakstat_8ccb23dc_s_myevent
--- failed re-building 'dMod.Rmd'

SUMMARY: processing the following file failed:
  'dMod.Rmd'

Error: Vignette re-building failed.
Execution halted