Error(s) in re-building vignettes:
--- re-building 'stanmath.Rmd' using rmarkdown
Building shared library for Rcpp code chunk...
In file included from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/prim/mat.hpp:336,
                 from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math.hpp:4,
                 from file4b8812ac1ac9.cpp:6:
D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp: In function 'typename stan::return_type<T_x, T_alpha, T_beta>::type stan::math::poisson_log_glm_lpmf(const T_y&, const T_x&, const T_alpha&, const T_beta&)':
D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp:64:59: warning: typedef 'T_alpha_val' locally defined but not used [-Wunused-local-typedefs]
       typename partials_return_type<T_alpha>::type>::type T_alpha_val;
                                                           ^
In file included from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/rev/core.hpp:45:0,
                 from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/mix/mat/functor/hessian.hpp:6,
                 from file4b8812ac1ac9.cpp:5:
D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp:14:13: warning: 'void stan::math::set_zero_all_adjoints()' defined but not used [-Wunused-function]
 static void set_zero_all_adjoints() {
             ^
Building shared library for Rcpp code chunk...
In file included from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/prim/mat.hpp:336,
                 from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math.hpp:4,
                 from file4b88426f1a3.cpp:4:
D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp: In function 'typename stan::return_type<T_x, T_alpha, T_beta>::type stan::math::poisson_log_glm_lpmf(const T_y&, const T_x&, const T_alpha&, const T_beta&)':
D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp:64:59: warning: typedef 'T_alpha_val' locally defined but not used [-Wunused-local-typedefs]
       typename partials_return_type<T_alpha>::type>::type T_alpha_val;
                                                           ^
In file included from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/rev/core.hpp:45:0,
                 from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/rev/mat.hpp:4,
                 from D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math.hpp:4,
                 from file4b88426f1a3.cpp:4:
D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp:14:13: warning: 'void stan::math::set_zero_all_adjoints()' defined but not used [-Wunused-function]
 static void set_zero_all_adjoints() {
             ^
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8d63): undefined reference to `N_VMake_Serial'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8d87): undefined reference to `SUNDenseMatrix'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8d9f): undefined reference to `SUNDenseLinearSolver'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8dc2): undefined reference to `CVodeCreate'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8e76): undefined reference to `CVodeInit'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8e96): undefined reference to `CVodeSetUserData'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8ed8): undefined reference to `CVodeSetErrHandlerFn'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8ee9): undefined reference to `CVodeSStolerances'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8f01): undefined reference to `CVodeSetMaxNumSteps'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8f1b): undefined reference to `CVodeSetInitStep'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8f36): undefined reference to `CVodeSetMaxErrTestFails'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8f51): undefined reference to `CVodeSetMaxConvFails'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8f7c): undefined reference to `CVodeSetLinearSolver'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x8f9e): undefined reference to `CVodeSetJacFn'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x9080): undefined reference to `CVode'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x909d): undefined reference to `CVodeFree'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x91e0): undefined reference to `SUNLinSolFree'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x91ed): undefined reference to `SUNMatDestroy'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x91fa): undefined reference to `N_VDestroy_Serial'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x9739): undefined reference to `N_VCloneVectorArrayEmpty_Serial'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x9836): undefined reference to `N_VDestroyVectorArray_Serial'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x99f2): undefined reference to `SUNLinSolFree'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x99ff): undefined reference to `SUNMatDestroy'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x9a0c): undefined reference to `N_VDestroy_Serial'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x9a26): undefined reference to `N_VDestroyVectorArray_Serial'
file4b88426f1a3.o:file4b88426f1a3.cpp:(.text+0x9afc): undefined reference to `CVodeFree'
collect2.exe: error: ld returned 1 exit status
make[1]: Entering directory `/cygdrive/d/temp/Rtmp650Esi/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_4b886c55875'
d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -m64  -std=gnu++14  -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/Rcpp/include" -I"D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/BH/include" -I"D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/RcppEigen/include" -I"D:/temp/RtmpCqc1Lh/RLIBS_14b8c724e6b71/StanHeaders/include" -I"D:/temp/Rtmp650Esi/sourceCpp-x86_64-w64-mingw32-1.0.4"   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2  -c file4b88426f1a3.cpp -o file4b88426f1a3.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -m64 -shared -s -static-libgcc -o sourceCpp_4.dll tmp.def file4b88426f1a3.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/x64 -lR
make[1]: Leaving directory `/cygdrive/d/temp/Rtmp650Esi/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_4b886c55875'
make[1]: Entering directory `/cygdrive/d/temp/Rtmp650Esi/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_4b886c55875'
make[1]: Leaving directory `/cygdrive/d/temp/Rtmp650Esi/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_4b886c55875'
Quitting from lines 175-223 (stanmath.Rmd) 
Error: processing vignette 'stanmath.Rmd' failed with diagnostics:
Error occurred building shared library.
--- failed re-building 'stanmath.Rmd'

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

Error: Vignette re-building failed.
Execution halted