Cannot install rstan_2.9.0-3.tar

Hi, I am trying to install rstan_2.9.0-3.tar, but always got this error message(I deleted some part due to the limit number of words in the post) . Anyone knows what is going on? Thanks!

Operating System: Windows 10
Interface Version: R studio Version 1.1.383
Rtools 3.5

‘\fdsfs01\ocp\TEMgroup\Ge.Feng\Stan’
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.

  • installing source package ‘rstan’ …
    ** package ‘rstan’ successfully unpacked and MD5 sums checked
    ** libs

*** arch - i386
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c chains.cpp -o chains.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c init.cpp -o init.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c lang__ast_def.cpp -o lang__ast_def.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c lang__grammars__bare_type_grammar_inst.cpp -o lang__grammars__bare_type_grammar_inst.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c lang__grammars__expression07_grammar_inst.cpp -o lang__grammars__expression07_grammar_inst.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c lang__grammars__expression_grammar_inst.cpp -o lang__grammars__expression_grammar_inst.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c lang__grammars__functions_grammar_inst.cpp -o lang__grammars__functions_grammar_inst.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c lang__grammars__indexes_grammar_inst.cpp -o lang__grammars__indexes_grammar_inst.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c lang__grammars__program_grammar_inst.cpp -o lang__grammars__program_grammar_inst.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-34~1.2/include" -DNDEBUG -I"…/inst/include" -I"…/inst/include/boost_not_in_BH" -I""C:/PROGRA~1/R/R-34~1.2/bin/i386/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/RcppEigen/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include" -I"C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c lang__grammars__statement_2_grammar_inst.cpp -o lang__grammars__statement_2_grammar_inst.o
stan::lang::expression(stan::lang::scope), stan::lang::whitespace_grammar<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > > >, boost::spirit::unused_type, boost::spirit::unused_type>, boost::fusion::vector<boost::phoenix::actor<boost::spirit::attribute<1> >, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_> > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector1 > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::qi::parameterized_nonterminal<boost::spirit::qi::rule<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > >, stan::lang::expression(stan::lang::scope), stan::lang::whitespace_grammar<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > > >, boost::spirit::unused_type, boost::spirit::unused_type>, boost::fusion::vector<boost::phoenix::actor<boost::spirit::attribute<1> >, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void_> > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector1 > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::qi::parameterized_nonterminal<boost::spirit::qi::rule<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > >, stan::lang::expression(stan::lang::scope), stan::lang::whitespace_grammar<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > > >, boost::spirit::unused_type, boost::spirit::unused_type>, boost::fusion::vector<boost::phoenix::actor<boost::spirit::attribute<1> >, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void_> > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector1 > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::qi::parameterized_nonterminal<boost::spirit::qi::rule<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > >, stan::lang::expression(stan::lang::scope), stan::lang::whitespace_grammar<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > > >, boost::spirit::unused_type, boost::spirit::unused_type>, boost::fusion::vector<boost::phoenix::actor<boost::spirit::attribute<1> >, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void_> > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector1 > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::qi::parameterized_nonterminal<boost::spirit::qi::rule<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > >, stan::lang::expression(stan::lang::scope), stan::lang::whitespace_grammar<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > > >, boost::spirit::unused_type, boost::spirit::unused_type>, boost::fusion::vector<boost::phoenix::actor<boost::spirit::attribute<1> >, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void_> > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector1 > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::qi::parameterized_nonterminal<boost::spirit::qi::rule<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > >, stan::lang::expression(stan::lang::scope), stan::lang::whitespace_grammar<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > > >, boost::spirit::unused_type, boost::spirit::unused_type>, boost::fusion::vector<boost::phoenix::actor<boost::spirit::attribute<1> >, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void_> > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector1 > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::qi::parameterized_nonterminal<boost::spirit::qi::rule<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > >, stan::lang::expression(stan::lang::scope), stan::lang::whitespace_grammar<boost::spirit::line_pos_iterator<gnu_cxx::normal_iterator<const char*, std::basic_string > > >, boost::spirit::unused_type, boost::spirit::unused_type>, boost::fusion::vector<boost::phoenix::actor<boost::spirit::attribute<1> >, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void, boost::fusion::void_> > >, 0l>&>, 2l>&, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::subscript, boost::proto::argsns_::list2<boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector1 > >, 0l>&, const boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list5<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::termstan::lang::validate_integrate_ode_control, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapperstan::lang::variable_map >, 0l> >, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::phoenix::argument<3> >, 0l> >, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::basic_stringstream > >, 0l> > >, 5l> >&>, 2l>&>, 2l>; Iterator = boost::spirit::line_pos_iterator<__gnu_cxx::__normal_iterator<const char*, std::basic_string > >; T1 = stan::lang::integrate_ode_control(stan::lang::scope); T2 = stan::lang::whitespace_grammar<boost::spirit::line_pos_iterator<__gnu_cxx::__normal_iterator<const char*, std::basic_string > > >; T3 = boost::spirit::unused_type; T4 = boost::spirit::unused_type]’
C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include/src/stan/lang/grammars/term_grammar_def.hpp:172:9: required from ‘stan::lang::term_grammar::term_grammar(stan::lang::variable_map&, std::stringstream&, stan::lang::expression_grammar&) [with Iterator = boost::spirit::line_pos_iterator<__gnu_cxx::__normal_iterator<const char*, std::basic_string > >; std::stringstream = std::basic_stringstream]’
C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include/src/stan/lang/grammars/term_grammar_inst.cpp:6:21: required from here
C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/container/vector/convert.hpp:27:13: error: invalid use of incomplete type ‘struct boost::fusion::detail::barrier::as_vector<11>’
type;
^
In file included from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/container/vector/detail/as_vector.hpp:17:0,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/container/vector/convert.hpp:11,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/container/vector.hpp:13,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/view/zip_view/detail/at_impl.hpp:12,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/view/zip_view/zip_view.hpp:19,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/view/zip_view.hpp:12,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/sequence/intrinsic/swap.hpp:15,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/sequence/intrinsic.hpp:23,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/include/intrinsic.hpp:11,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/proto/fusion.hpp:22,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/proto/core.hpp:21,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/proto/proto.hpp:12,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:19,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include/src/stan/lang/grammars/term_grammar_def.hpp:5,
from C:/Users/Ge.Feng/Documents/R/win-library/3.4/StanHeaders/include/src/stan/lang/grammars/term_grammar_inst.cpp:1,
from lang__grammars__term_grammar_inst.cpp:18:
C:/Users/Ge.Feng/Documents/R/win-library/3.4/BH/include/boost/fusion/container/vector/detail/cpp03/as_vector.hpp:28:12: error: declaration of ‘struct boost::fusion::detail::barrier::as_vector<11>’
struct as_vector;
^
make: *** [C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf:215: lang__grammars__term_grammar_inst.o] Error 1
Warning: running command ‘make -f “Makevars.win” -f “C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf” -f “C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk” SHLIB_LDFLAGS=’(SHLIB_CXXLDFLAGS)' SHLIB_LD='(SHLIB_CXXLD)’ SHLIB=“rstan.dll” OBJECTS=“chains.o init.o lang__ast_def.o lang__grammars__bare_type_grammar_inst.o lang__grammars__expression07_grammar_inst.o lang__grammars__expression_grammar_inst.o lang__grammars__functions_grammar_inst.o lang__grammars__indexes_grammar_inst.o lang__grammars__program_grammar_inst.o lang__grammars__statement_2_grammar_inst.o lang__grammars__statement_grammar_inst.o lang__grammars__term_grammar_inst.o lang__grammars__var_deccls_grammar_inst.o lang__grammars__whitespace_grammar_inst.o misc.o sparse_extractors.o stanc.o”’ had status 2
ERROR: compilation failed for package ‘rstan’

  • removing ‘C:/Users/Ge.Feng/Documents/R/win-library/3.4/rstan’
    Warning in install.packages :
    running command ‘“C:/PROGRA~1/R/R-34~1.2/bin/x64/R” CMD INSTALL -l “C:\Users\Ge.Feng\Documents\R\win-library\3.4” “C:/Users/Ge.Feng/Downloads/rstan_2.9.0-3.tar.gz”’ had status 1
    Warning in install.packages :
    installation of package ‘C:/Users/Ge.Feng/Downloads/rstan_2.9.0-3.tar.gz’ had non-zero exit status

You likely need a similarly outdated version of the BH package.

Why are you trying to install such an old version of RStan in the first place?

See the link here:

Because Stan gave me something that apparently should not be negative. The newest version of R Stan could not sample correctly.

I would trust the current version over something from 2016.

Thanks! I just installed the outdated version of BH packaged and Rstan. It did not work. Well, I wanted to use the newest version of R Stan at the first place, but like I said, I got something that apparently should not be negative. I always got the error message, and it won’t start sampling. And I asked the person who posted the code, he replied me and said at the time he wrote the code, it can sample without any problem. so I am thinking to try the outdated version of Stan.

Much easier to fix your survival model than to install outdated versions. I think the NUTS algorithm was giving slightly wrong results back then anyway.

The survival model actually does not need to be fixed. It can be sampled without any problems in Jags. I don’t know what is the difference and what is going on in Stan.

I mean the Stan version needs to be fixed, which is much easier than installing everything needed to get such an old version of Stan to run.

Well, I tried many ways to fix it, but still no clue. That’s why I tried old version, since I really wanted it to work. Do you mind helping me check this problem out? THANKS.
Here is the link: