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:15: warning: ISO C forbids zero-size array 'forc' [-Wpedantic]
 static double forc[0];
               ^
jakstat_8ccb23dc.c:7:15: warning: ISO C forbids zero-size array 'cons' [-Wpedantic]
 static double cons[0];
               ^
jakstat_8ccb23dc.c:7:15: warning: 'cons' defined but not used [-Wunused-variable]
jakstat_8ccb23dc.c:8:15: warning: 'range' defined but not used [-Wunused-variable]
 static double range[2];
               ^
jakstat_8ccb23dc_s.c:6:15: warning: ISO C forbids zero-size array 'forc' [-Wpedantic]
 static double forc[0];
               ^
jakstat_8ccb23dc_s.c:7:15: warning: ISO C forbids zero-size array 'cons' [-Wpedantic]
 static double cons[0];
               ^
jakstat_8ccb23dc_s.c: In function 'jakstat_8ccb23dc_s_myevent':
jakstat_8ccb23dc_s.c:191:12: error: 'NA' undeclared (first use in this function)
   if(*t == NA & eventcounter[0] == 0) {
            ^
jakstat_8ccb23dc_s.c:191:12: note: each undeclared identifier is reported only once for each function it appears in
jakstat_8ccb23dc_s.c:196:9: error: invalid operands to binary == (have 'double' and 'double *')
   if(*t ==  & eventcounter[-1] == 0) {
         ^
jakstat_8ccb23dc_s.c:189:10: warning: unused variable 'time' [-Wunused-variable]
   double time = *t;
          ^
jakstat_8ccb23dc_s.c: At top level:
jakstat_8ccb23dc_s.c:7:15: warning: 'cons' defined but not used [-Wunused-variable]
 static double cons[0];
               ^
jakstat_8ccb23dc_s.c:9:15: warning: 'range' defined but not used [-Wunused-variable]
 static double range[2];
               ^
make[1]: *** [jakstat_8ccb23dc_s.o] Error 1
Warning in system(paste0(R.home(component = "bin"), "/R CMD SHLIB ", filename),  :
  running command 'D:/RCompile/recent/R/bin/x64/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'

Warning in file.remove(f) :
  cannot remove file 'jakstat_8ccb23dc.dll', reason 'Permission denied'
SUMMARY: processing the following file failed:
  'dMod.Rmd'

Error: Vignette re-building failed.
Execution halted