Error(s) in re-building vignettes:
--- re-building 'SBC.Rmd' using rmarkdown
Creating a 'stanmodel' object beta_binomial
--- finished re-building 'SBC.Rmd'

--- re-building 'external.Rmd' using rmarkdown
Quitting from lines 200-208 (external.Rmd) 
Quitting from lines 200-208 (external.Rmd) 
Error: processing vignette 'external.Rmd' failed with diagnostics:
invalid connection
--- failed re-building 'external.Rmd'

--- re-building 'rstan.Rmd' using rmarkdown
In file included from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/prim/mat/prob/dirichlet_log.hpp:5:0,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/prim/mat.hpp:278,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math.hpp:4,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/src/stan/model/standalone_functions_header.hpp:5,
                 from file2bd425ec49aa.cpp:5:
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/prim/mat/prob/dirichlet_lpmf.hpp: In function 'stan::return_type_t<T1, T2> stan::math::dirichlet_lpmf(const T_prob&, const T_prior_size&)':
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/prim/mat/prob/dirichlet_lpmf.hpp:60:74: warning: typedef 'using T_partials_vec = struct Eigen::Matrix<typename stan::partials_return_type<T_prob, T_prior_size>::type, -1, 1>' locally defined but not used [-Wunused-local-typedefs]
   using T_partials_vec = typename Eigen::Matrix<T_partials_return, -1, 1>;
                                                                          ^
In file included from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/prim/mat.hpp:328,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math.hpp:4,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/src/stan/model/standalone_functions_header.hpp:5,
                 from file2bd425ec49aa.cpp:5:
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp: In function 'stan::return_type_t<T_x, T_alpha, T_beta> stan::math::poisson_log_glm_lpmf(const T_y&, const T_x&, const T_alpha&, const T_beta&)':
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp:55:34: warning: typedef 'using T_alpha_val = std::conditional_t<stan::is_vector<T4>::value, Eigen::Array<typename stan::partials_return_type<T_alpha>::type, -1, 1>, typename stan::partials_return_type<T_alpha>::type>' locally defined but not used [-Wunused-local-typedefs]
       partials_return_t<T_alpha>>;
                                  ^
In file included from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/mat.hpp:51:0,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math.hpp:4,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/src/stan/model/standalone_functions_header.hpp:5,
                 from file2bd425ec49aa.cpp:5:
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/mat/fun/squared_distance.hpp: In static member function 'static double stan::math::internal::squared_distance_vv_vari::var_squared_distance(const Eigen::Matrix<stan::math::var, R, C>&, const Eigen::Matrix<stan::math::var, R2, C2, (AutoAlign | (((R2 == 1) && (C2 != 1)) ? RowMajor : (((C2 == 1) && (R2 != 1)) ? ColMajor :  ColMajor))), R2, C2>&)':
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/mat/fun/squared_distance.hpp:27:54: warning: typedef 'using idx_t = using type = Eigen::EigenBase<Eigen::Matrix<stan::math::var, -1, -1> >::Index' locally defined but not used [-Wunused-local-typedefs]
     using idx_t = typename index_type<matrix_v>::type;
                                                      ^
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/mat/fun/squared_distance.hpp: In static member function 'static double stan::math::internal::squared_distance_vd_vari::var_squared_distance(const Eigen::Matrix<stan::math::var, R, C>&, const Eigen::Matrix<double, R2, C2>&)':
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/mat/fun/squared_distance.hpp:64:54: warning: typedef 'using idx_t = using type = Eigen::EigenBase<Eigen::Matrix<double, -1, -1> >::Index' locally defined but not used [-Wunused-local-typedefs]
     using idx_t = typename index_type<matrix_d>::type;
                                                      ^
In file included from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/core.hpp:46:0,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/mat.hpp:6,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math.hpp:4,
                 from D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/src/stan/model/standalone_functions_header.hpp:5,
                 from file2bd425ec49aa.cpp:5:
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
D:/temp/RtmpKWOtSK/RLIBS_12d4c14ca145f/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() {
             ^
--- finished re-building 'rstan.Rmd'

--- re-building 'stanfit-objects.Rmd' using rmarkdown
--- finished re-building 'stanfit-objects.Rmd'

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

Error: Vignette re-building failed.
Execution halted