Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing problem #11

Closed
MartinsRodrigo opened this issue May 16, 2020 · 6 comments
Closed

Installing problem #11

MartinsRodrigo opened this issue May 16, 2020 · 6 comments
Labels

Comments

@MartinsRodrigo
Copy link

Hi, I'm trying to install idealstan on R 4.0.0 64-bit Windows. I'm getting an error when trying to install it, though.

`> devtools::install_github('saudiwin/idealstan',local=F)
Downloading GitHub repo saudiwin/idealstan@master
√  checking for file 'C:\Users\Rodrigo\AppData\Local\Temp\RtmpSUhkfM\remotes55ac315873f6\saudiwin-idealstan-7bf90f3/DESCRIPTION' (777ms)
-  preparing 'idealstan':
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  excluding invalid files (1.8s)
   Subdirectory 'R' contains invalid file names:
     'Time_Series.html.asis'
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'idealstan_0.7.2.tar.gz'
   
Installing package into ‘C:/Users/Rodrigo/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'idealstan' ...
** using staged installation
** libs

*** arch - i386
"C:/PROGRA~1/R/R-40~1.0/bin/i386/Rscript" -e "source(file.path('..', 'tools', 'make_cc.R')); make_cc(commandArgs(TRUE))" stan_files/irt_standard.stan
DIAGNOSTIC(S) FROM PARSER:
Info: integer division implicitly rounds to integer. Found int division: i - 1 / 2
 Positive values rounded down, negative values rounded up or down in platform-dependent way.
Info:
Left-hand side of sampling statement (~) may contain a non-linear transform of a parameter or local variable.
If it does, you need to include a target += statement with the log absolute determinant of the Jacobian of the transform.
Left-hand-side of sampling statement:
    L_tp1[[restrict_mean_ind[1], restrict_mean_ind[2]]] - L_tp1[[restrict_mean_ind[5], restrict_mean_ind[6]]] ~ normal(...)
Info:
Left-hand side of sampling statement (~) may contain a non-linear transform of a parameter or local variable.
If it does, you need to include a target += statement with the log absolute determinant of the Jacobian of the transform.
Left-hand-side of sampling statement:
    L_tp1[[restrict_mean_ind[3], restrict_mean_ind[4]]] - L_tp1[[restrict_mean_ind[7], restrict_mean_ind[8]]] ~ normal(...)

Wrote C++ file "stan_files/irt_standard.cc"


C:/Rtools/mingw_32/bin/g++  -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG -I"../inst/include" -I"C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/BH/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/RcppEigen/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c stan_files/irt_standard.cc -o stan_files/irt_standard.o
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat.hpp:336,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/irt_standard.hpp:18,
                 from stan_files/irt_standard.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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&)':
C:/Users/Rodrigo/Documents/R/win-library/4.0/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 stan_files/irt_standard.cc:3:0:
stan_files/irt_standard.hpp: In member function 'void model_irt_standard_namespace::model_irt_standard::transform_inits(const stan::io::var_context&, std::vector<int>&, std::vector<double>&, std::ostream*) const':
stan_files/irt_standard.hpp:1376:24: warning: typedef 'local_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
         typedef double local_scalar_t__;
                        ^
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core.hpp:45:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/irt_standard.hpp:18,
                 from stan_files/irt_standard.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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() {
             ^
"C:/PROGRA~1/R/R-40~1.0/bin/i386/Rscript" -e "source(file.path('..', 'tools', 'make_cc.R')); make_cc(commandArgs(TRUE))" stan_files/irt_standard_noid.stan
DIAGNOSTIC(S) FROM PARSER:
Info: integer division implicitly rounds to integer. Found int division: i - 1 / 2
 Positive values rounded down, negative values rounded up or down in platform-dependent way.

Wrote C++ file "stan_files/irt_standard_noid.cc"


C:/Rtools/mingw_32/bin/g++  -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG -I"../inst/include" -I"C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/BH/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/RcppEigen/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c stan_files/irt_standard_noid.cc -o stan_files/irt_standard_noid.o
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat.hpp:336,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/irt_standard_noid.hpp:18,
                 from stan_files/irt_standard_noid.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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&)':
C:/Users/Rodrigo/Documents/R/win-library/4.0/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 stan_files/irt_standard_noid.cc:3:0:
stan_files/irt_standard_noid.hpp: In member function 'void model_irt_standard_noid_namespace::model_irt_standard_noid::transform_inits(const stan::io::var_context&, std::vector<int>&, std::vector<double>&, std::ostream*) const':
stan_files/irt_standard_noid.hpp:1202:24: warning: typedef 'local_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
         typedef double local_scalar_t__;
                        ^
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core.hpp:45:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/irt_standard_noid.hpp:18,
                 from stan_files/irt_standard_noid.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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() {
             ^
"C:/PROGRA~1/R/R-40~1.0/bin/i386/Rscript" -e "source(file.path('..', 'tools', 'make_cc.R')); make_cc(commandArgs(TRUE))" stan_files/sim_gp.stan
Wrote C++ file "stan_files/sim_gp.cc"


C:/Rtools/mingw_32/bin/g++  -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG -I"../inst/include" -I"C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/BH/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/RcppEigen/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c stan_files/sim_gp.cc -o stan_files/sim_gp.o
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat.hpp:336,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/sim_gp.hpp:18,
                 from stan_files/sim_gp.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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&)':
C:/Users/Rodrigo/Documents/R/win-library/4.0/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 stan_files/sim_gp.cc:3:0:
stan_files/sim_gp.hpp: In member function 'void model_sim_gp_namespace::model_sim_gp::transform_inits(const stan::io::var_context&, std::vector<int>&, std::vector<double>&, std::ostream*) const':
stan_files/sim_gp.hpp:199:24: warning: typedef 'local_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
         typedef double local_scalar_t__;
                        ^
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core.hpp:45:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/sim_gp.hpp:18,
                 from stan_files/sim_gp.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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() {
             ^


C:/Rtools/mingw_32/bin/g++  -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG -I"../inst/include" -I"C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/BH/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/RcppEigen/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c init.cpp -o init.o
C:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o idealstan.dll tmp.def stan_files/irt_standard.o stan_files/irt_standard_noid.o stan_files/sim_gp.o init.o -LC:/PROGRA~1/R/R-40~1.0/bin/i386 -lR
rm stan_files/irt_standard_noid.cc stan_files/sim_gp.cc stan_files/irt_standard.cc
installing to C:/Users/Rodrigo/Documents/R/win-library/4.0/00LOCK-idealstan/00new/idealstan/libs/i386

*** arch - x64
"C:/PROGRA~1/R/R-40~1.0/bin/x64/Rscript" -e "source(file.path('..', 'tools', 'make_cc.R')); make_cc(commandArgs(TRUE))" stan_files/irt_standard.stan
DIAGNOSTIC(S) FROM PARSER:
Info: integer division implicitly rounds to integer. Found int division: i - 1 / 2
 Positive values rounded down, negative values rounded up or down in platform-dependent way.
Info:
Left-hand side of sampling statement (~) may contain a non-linear transform of a parameter or local variable.
If it does, you need to include a target += statement with the log absolute determinant of the Jacobian of the transform.
Left-hand-side of sampling statement:
    L_tp1[[restrict_mean_ind[1], restrict_mean_ind[2]]] - L_tp1[[restrict_mean_ind[5], restrict_mean_ind[6]]] ~ normal(...)
Info:
Left-hand side of sampling statement (~) may contain a non-linear transform of a parameter or local variable.
If it does, you need to include a target += statement with the log absolute determinant of the Jacobian of the transform.
Left-hand-side of sampling statement:
    L_tp1[[restrict_mean_ind[3], restrict_mean_ind[4]]] - L_tp1[[restrict_mean_ind[7], restrict_mean_ind[8]]] ~ normal(...)

Wrote C++ file "stan_files/irt_standard.cc"


C:/Rtools/mingw_64/bin/g++  -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG -I"../inst/include" -I"C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/BH/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/RcppEigen/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c stan_files/irt_standard.cc -o stan_files/irt_standard.o
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat.hpp:336,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/irt_standard.hpp:18,
                 from stan_files/irt_standard.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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&)':
C:/Users/Rodrigo/Documents/R/win-library/4.0/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 stan_files/irt_standard.cc:3:0:
stan_files/irt_standard.hpp: In member function 'void model_irt_standard_namespace::model_irt_standard::transform_inits(const stan::io::var_context&, std::vector<int>&, std::vector<double>&, std::ostream*) const':
stan_files/irt_standard.hpp:1376:24: warning: typedef 'local_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
         typedef double local_scalar_t__;
                        ^
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core.hpp:45:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/irt_standard.hpp:18,
                 from stan_files/irt_standard.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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() {
             ^
"C:/PROGRA~1/R/R-40~1.0/bin/x64/Rscript" -e "source(file.path('..', 'tools', 'make_cc.R')); make_cc(commandArgs(TRUE))" stan_files/irt_standard_noid.stan
DIAGNOSTIC(S) FROM PARSER:
Info: integer division implicitly rounds to integer. Found int division: i - 1 / 2
 Positive values rounded down, negative values rounded up or down in platform-dependent way.

Wrote C++ file "stan_files/irt_standard_noid.cc"


C:/Rtools/mingw_64/bin/g++  -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG -I"../inst/include" -I"C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/BH/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/RcppEigen/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c stan_files/irt_standard_noid.cc -o stan_files/irt_standard_noid.o
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat.hpp:336,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/irt_standard_noid.hpp:18,
                 from stan_files/irt_standard_noid.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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&)':
C:/Users/Rodrigo/Documents/R/win-library/4.0/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 stan_files/irt_standard_noid.cc:3:0:
stan_files/irt_standard_noid.hpp: In member function 'void model_irt_standard_noid_namespace::model_irt_standard_noid::transform_inits(const stan::io::var_context&, std::vector<int>&, std::vector<double>&, std::ostream*) const':
stan_files/irt_standard_noid.hpp:1202:24: warning: typedef 'local_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
         typedef double local_scalar_t__;
                        ^
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core.hpp:45:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/irt_standard_noid.hpp:18,
                 from stan_files/irt_standard_noid.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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() {
             ^
"C:/PROGRA~1/R/R-40~1.0/bin/x64/Rscript" -e "source(file.path('..', 'tools', 'make_cc.R')); make_cc(commandArgs(TRUE))" stan_files/sim_gp.stan
Wrote C++ file "stan_files/sim_gp.cc"


C:/Rtools/mingw_64/bin/g++  -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG -I"../inst/include" -I"C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/BH/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/RcppEigen/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c stan_files/sim_gp.cc -o stan_files/sim_gp.o
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/mat.hpp:336,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/sim_gp.hpp:18,
                 from stan_files/sim_gp.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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&)':
C:/Users/Rodrigo/Documents/R/win-library/4.0/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 stan_files/sim_gp.cc:3:0:
stan_files/sim_gp.hpp: In member function 'void model_sim_gp_namespace::model_sim_gp::transform_inits(const stan::io::var_context&, std::vector<int>&, std::vector<double>&, std::ostream*) const':
stan_files/sim_gp.hpp:199:24: warning: typedef 'local_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
         typedef double local_scalar_t__;
                        ^
In file included from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core.hpp:45:0,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/mat.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/sim_gp.hpp:18,
                 from stan_files/sim_gp.cc:3:
C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
C:/Users/Rodrigo/Documents/R/win-library/4.0/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() {
             ^


C:/Rtools/mingw_64/bin/g++  -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG -I"../inst/include" -I"C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/StanHeaders/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/rstan/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/BH/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/Rodrigo/Documents/R/win-library/4.0/RcppEigen/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c init.cpp -o init.o
C:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o idealstan.dll tmp.def stan_files/irt_standard.o stan_files/irt_standard_noid.o stan_files/sim_gp.o init.o -LC:/PROGRA~1/R/R-40~1.0/bin/x64 -lR
rm stan_files/irt_standard_noid.cc stan_files/sim_gp.cc stan_files/irt_standard.cc
installing to C:/Users/Rodrigo/Documents/R/win-library/4.0/00LOCK-idealstan/00new/idealstan/libs/x64
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Creating a new generic function for 'stan_trace' in package 'idealstan'
DIAGNOSTIC(S) FROM PARSER:
Info: integer division implicitly rounds to integer. Found int division: i - 1 / 2
 Positive values rounded down, negative values rounded up or down in platform-dependent way.
Info:
Left-hand side of sampling statement (~) may contain a non-linear transform of a parameter or local variable.
If it does, you need to include a target += statement with the log absolute determinant of the Jacobian of the transform.
Left-hand-side of sampling statement:
    L_tp1[[restrict_mean_ind[1], restrict_mean_ind[2]]] - L_tp1[[restrict_mean_ind[5], restrict_mean_ind[6]]] ~ normal(...)
Info:
Left-hand side of sampling statement (~) may contain a non-linear transform of a parameter or local variable.
If it does, you need to include a target += statement with the log absolute determinant of the Jacobian of the transform.
Left-hand-side of sampling statement:
    L_tp1[[restrict_mean_ind[3], restrict_mean_ind[4]]] - L_tp1[[restrict_mean_ind[7], restrict_mean_ind[8]]] ~ normal(...)

DIAGNOSTIC(S) FROM PARSER:
Info: integer division implicitly rounds to integer. Found int division: i - 1 / 2
 Positive values rounded down, negative values rounded up or down in platform-dependent way.

** help
*** installing help indices
  converting help for package 'idealstan'
    finding HTML links ... done
    delaware                                html  
    derive_chain                            html  
    id_estimate                             html  
    finding level-2 HTML links ... done

Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/id_estimate.Rd:58: file link 'vb' in package 'rstan' does not exist and so has been treated as a topic
    id_extract-idealstan-method             html  
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/id_extract-idealstan-method.Rd:23: file link 'extract' in package 'rstan' does not exist and so has been treated as a topic
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/id_extract-idealstan-method.Rd:19: file link 'extract' in package 'rstan' does not exist and so has been treated as a topic
    id_extract                              html  
    id_make                                 html  
    id_plot-idealstan-method                html  
    id_plot                                 html  
    id_plot_all_hist                        html  
    id_plot_compare                         html  
    id_plot_cov                             html  
    id_plot_irf                             html  
    id_plot_legis                           html  
    id_plot_legis_dyn                       html  
    id_plot_legis_var                       html  
    id_plot_ppc-idealstan-method            html  
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/id_plot_ppc-idealstan-method.Rd:21: file link 'ppc_bars' in package 'bayesplot' does not exist and so has been treated as a topic
    id_plot_ppc                             html  
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/id_plot_ppc.Rd:12: file link 'ppc_bars' in package 'bayesplot' does not exist and so has been treated as a topic
    id_plot_rhats                           html  
    id_plot_sims                            html  
    id_post_pred-idealstan-method           html  
    id_post_pred                            html  
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/id_post_pred.Rd:21: file link 'ppc_bars' in package 'bayesplot' does not exist and so has been treated as a topic
    id_sim_coverage                         html  
    id_sim_gen                              html  
    id_sim_resid                            html  
    id_sim_rmse                             html  
    idealdata-class                         html  
    idealstan-class                         html  
    idealstan                               html  
    launch_shinystan-idealstan-method       html  
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/launch_shinystan-idealstan-method.Rd:17: file link 'shinystan' in package 'shinystan' does not exist and so has been treated as a topic
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/launch_shinystan-idealstan-method.Rd:25: file link 'shinystan' in package 'shinystan' does not exist and so has been treated as a topic
    launch_shinystan                        html  
    release_questions                       html  
    senate114                               html  
    stan_trace-idealstan-method             html  
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/stan_trace-idealstan-method.Rd:15: file link 'stan_trace' in package 'rstan' does not exist and so has been treated as a topic
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/stan_trace-idealstan-method.Rd:29: file link 'stan_trace' in package 'rstan' does not exist and so has been treated as a topic
    stan_trace                              html  
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/stan_trace.Rd:12: file link 'stan_trace' in package 'rstan' does not exist and so has been treated as a topic
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/stan_trace.Rd:26: file link 'stan_trace' in package 'rstan' does not exist and so has been treated as a topic
    summary-idealstan-method                html  
Rd warning: C:/Users/Rodrigo/AppData/Local/Temp/RtmpKCWScu/R.INSTALL72c5ea81f6b/idealstan/man/summary-idealstan-method.Rd:28: file link 'tibble' in package 'dplyr' does not exist and so has been treated as a topic
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/Users/Rodrigo/Documents/R/win-library/4.0/idealstan'
Error: Failed to install 'idealstan' from GitHub:
  (converted from warning) installation of package ‘C:/Users/Rodrigo/AppData/Local/Temp/RtmpSUhkfM/file55ac3fb730d2/idealstan_0.7.2.tar.gz’ had non-zero exit status
Warning message:
1 components of `...` were not used.

We detected these problematic arguments:
* `local`

Did you misspecify an argument? `
@saudiwin
Copy link
Owner

Well that's fun. Thanks for letting me know! Will fix this in the next release (sometime next 2-3 months).

@saudiwin saudiwin added the bug label May 29, 2020
@michalovadek
Copy link
Contributor

Hi, any update on fixing the CRAN submission? I have an accepted paper using idealstan but the journal editors are struggling to replicate because of problems compiling the archived version from source. It would be useful to know if you have a new tentative timeline for the next release. Thanks!

@saudiwin
Copy link
Owner

Hi @michalovadek - which version did you use for your paper? Can they install the github version? (same code as above).

Unfortunately I am not anticipating putting this package back on CRAN for the foreseeable future as rstan is no longer able to be on CRAN either. It is likely going to be put into the Stan package archive.

@michalovadek
Copy link
Contributor

I managed to do a clean install with R 3.6.0 (although having to first create the Makevars.win file), while the editors are struggling on R 4.0.x. Do you know at which stage there was a breaking change in base R?

@saudiwin
Copy link
Owner

saudiwin commented Sep 7, 2020

It still works on R 3.6 I'm pretty sure. Probably the best way to handle editors is to set up a code capsule at code ocean so you can get the exact right software.

@saudiwin
Copy link
Owner

With the beta for version 1.0 available, I am closing this issue. See README file for new installation instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants