Error in re-building vignettes:
  ...
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
  Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
Building shared library for Rcpp code chunk...
In file included from /home/ripley/R/Lib32/BH/include/boost/smart_ptr/shared_ptr.hpp:28:0,
                 from /home/ripley/R/Lib32/BH/include/boost/shared_ptr.hpp:17,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
     explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                 ^
In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                 from /opt/csw/include/c++/5.2.0/locale:43,
                 from /opt/csw/include/c++/5.2.0/iomanip:43,
                 from /home/ripley/R/Lib32/Rcpp/include/RcppCommon.h:52,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp.h:27,
                 from file59dd452a492.cpp:4:
/opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from /home/ripley/R/Lib32/BH/include/boost/shared_ptr.hpp:17:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
 template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                 ^
In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                 from /opt/csw/include/c++/5.2.0/locale:43,
                 from /opt/csw/include/c++/5.2.0/iomanip:43,
                 from /home/ripley/R/Lib32/Rcpp/include/RcppCommon.h:52,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp.h:27,
                 from file59dd452a492.cpp:4:
/opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from /home/ripley/R/Lib32/BH/include/boost/shared_ptr.hpp:17:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
     explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                               ^
In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                 from /opt/csw/include/c++/5.2.0/locale:43,
                 from /opt/csw/include/c++/5.2.0/iomanip:43,
                 from /home/ripley/R/Lib32/Rcpp/include/RcppCommon.h:52,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp.h:27,
                 from file59dd452a492.cpp:4:
/opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from /home/ripley/R/Lib32/BH/include/boost/shared_ptr.hpp:17:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
     shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn()
                      ^
In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                 from /opt/csw/include/c++/5.2.0/locale:43,
                 from /opt/csw/include/c++/5.2.0/iomanip:43,
                 from /home/ripley/R/Lib32/Rcpp/include/RcppCommon.h:52,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp.h:27,
                 from file59dd452a492.cpp:4:
/opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from /home/ripley/R/Lib32/BH/include/boost/shared_ptr.hpp:17:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> & r )
                                  ^
In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                 from /opt/csw/include/c++/5.2.0/locale:43,
                 from /opt/csw/include/c++/5.2.0/iomanip:43,
                 from /home/ripley/R/Lib32/Rcpp/include/RcppCommon.h:52,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp.h:27,
                 from file59dd452a492.cpp:4:
/opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from /home/ripley/R/Lib32/BH/include/boost/shared_ptr.hpp:17:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> && r )
                                  ^
In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                 from /opt/csw/include/c++/5.2.0/locale:43,
                 from /opt/csw/include/c++/5.2.0/iomanip:43,
                 from /home/ripley/R/Lib32/Rcpp/include/RcppCommon.h:52,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp.h:27,
                 from file59dd452a492.cpp:4:
/opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from /home/ripley/R/Lib32/BH/include/boost/shared_ptr.hpp:17:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function ‘boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&)’:
/home/ripley/R/Lib32/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
         this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this );
                                      ^
In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                 from /opt/csw/include/c++/5.2.0/locale:43,
                 from /opt/csw/include/c++/5.2.0/iomanip:43,
                 from /home/ripley/R/Lib32/Rcpp/include/RcppCommon.h:52,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp.h:27,
                 from file59dd452a492.cpp:4:
/opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/exp_sinh.hpp:21:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::exp_sinh_detail<Real, Policy>::init(const mpl_::int_<1>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp:348:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_weights.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/exp_sinh.hpp:21:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::exp_sinh_detail<Real, Policy>::init(const mpl_::int_<2>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp:384:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_weights.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/exp_sinh.hpp:21:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::exp_sinh_detail<Real, Policy>::init(const mpl_::int_<3>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp:420:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_weights.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/exp_sinh.hpp:21:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:7,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::exp_sinh_detail<Real, Policy>::init(const mpl_::int_<4>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp:457:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_weights.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/sinh_sinh.hpp:21:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:8,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::sinh_sinh_detail<Real, Policy>::init(const mpl_::int_<1>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp:338:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_weights.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/sinh_sinh.hpp:21:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:8,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::sinh_sinh_detail<Real, Policy>::init(const mpl_::int_<2>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp:374:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_weights.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/sinh_sinh.hpp:21:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:8,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::sinh_sinh_detail<Real, Policy>::init(const mpl_::int_<3>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp:411:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_weights.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/sinh_sinh.hpp:21:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:8,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::sinh_sinh_detail<Real, Policy>::init(const mpl_::int_<4>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp:448:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_weights.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/tanh_sinh.hpp:35:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:9,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::tanh_sinh_detail<Real, Policy>::init(const Real&, const mpl_::int_<1>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp:510:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_abscissas.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/tanh_sinh.hpp:35:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:9,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::tanh_sinh_detail<Real, Policy>::init(const Real&, const mpl_::int_<2>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp:560:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_abscissas.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/tanh_sinh.hpp:35:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:9,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::tanh_sinh_detail<Real, Policy>::init(const Real&, const mpl_::int_<3>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp:609:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_abscissas.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/math/quadrature/tanh_sinh.hpp:35:0,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:9,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:43,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp: In member function ‘void boost::math::quadrature::detail::tanh_sinh_detail<Real, Policy>::init(const Real&, const mpl_::int_<4>&)’:
/home/ripley/R/Lib32/BH/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp:660:63: error: ‘atomic_unsigned_integer_type’ in namespace ‘boost::math::detail’ does not name a type
    m_committed_refinements = static_cast<boost::math::detail::atomic_unsigned_integer_type>(m_abscissas.size() - 1);
                                                               ^
In file included from /home/ripley/R/Lib32/BH/include/boost/fusion/functional/invocation/detail/that_ptr.hpp:13:0,
                 from /home/ripley/R/Lib32/BH/include/boost/fusion/functional/invocation/invoke.hpp:52,
                 from /home/ripley/R/Lib32/BH/include/boost/fusion/functional/adapter/fused.hpp:17,
                 from /home/ripley/R/Lib32/BH/include/boost/fusion/functional/generation/make_fused.hpp:13,
                 from /home/ripley/R/Lib32/BH/include/boost/fusion/include/make_fused.hpp:11,
                 from /home/ripley/R/Lib32/BH/include/boost/numeric/odeint/util/resize.hpp:28,
                 from /home/ripley/R/Lib32/BH/include/boost/numeric/odeint/util/state_wrapper.hpp:26,
                 from /home/ripley/R/Lib32/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:33,
                 from /home/ripley/R/Lib32/BH/include/boost/numeric/odeint.hpp:25,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:17,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/arr.hpp:44,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:325,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                 from file59dd452a492.cpp:6:
/home/ripley/R/Lib32/BH/include/boost/get_pointer.hpp: At global scope:
/home/ripley/R/Lib32/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
 template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                                        ^
In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                 from /opt/csw/include/c++/5.2.0/locale:43,
                 from /opt/csw/include/c++/5.2.0/iomanip:43,
                 from /home/ripley/R/Lib32/Rcpp/include/RcppCommon.h:52,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp.h:27,
                 from file59dd452a492.cpp:4:
/opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
make: Fatal error: Command failed for target `file59dd452a492.o'
Current working directory /tmp/RtmpQDaO7S/sourceCpp-i386-pc-solaris2.10-1.0.0/sourcecpp_59dd548c7b47
/opt/csw//bin/g++ -std=gnu++14 -I"/home/ripley/R/gcc/include" -DNDEBUG   -I"/home/ripley/R/Lib32/Rcpp/include" -I"/home/ripley/R/Lib32/BH/include" -I"/home/ripley/R/Lib32/RcppEigen/include" -I"/home/ripley/R/Lib32/StanHeaders/include" -I"/tmp/RtmpQDaO7S/sourceCpp-i386-pc-solaris2.10-1.0.0" -I/opt/csw/include -I/usr/local/include   -fPIC  -O2 -c file59dd452a492.cpp -o file59dd452a492.o
*** Error code 1
Quitting from lines 40-60 (stanmath.Rmd) 
Error: processing vignette 'stanmath.Rmd' failed with diagnostics:
Error 1 occurred building shared library.
Execution halted