I’m trying to compile the Cpp file using package TMB. But I have error and compile failed.
library (TMB)
compile(file = "./glmmBoot/src/glmm_rirs.cpp")
And here the output from this :
C:/rtools40/usr/mingw_64/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-40~1.3/include" -DNDEBUG -IC:/Users/Hp/DOCUME~1/R/WIN-LI~1/4.0/TMB/include -IC:/Users/Hp/DOCUME~1/R/WIN-LI~1/4.0/RCPPEI~1/include -DTMB_SAFEBOUNDS -DLIB_UNLOAD=R_unload_glmm_rirs -DTMB_LIB_INIT=R_init_glmm_rirs -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c glmmBoot/src/glmm_rirs.cpp -o glmmBoot/src/glmm_rirs.o
sh: C:/rtools40/usr/mingw_64/bin/g++: No such file or directory
make: *** [C:/PROGRA~1/R/R-40~1.3/etc/x64/Makeconf:229: glmmBoot/src/glmm_rirs.o] Error 127
Error in compile(file = "./glmmBoot/src/glmm_rirs.cpp") :
Compilation failed
do you have some way to fix it?
Here my session info
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=Indonesian_Indonesia.1252
[2] LC_CTYPE=Indonesian_Indonesia.1252
[3] LC_MONETARY=Indonesian_Indonesia.1252
[4] LC_NUMERIC=C
[5] LC_TIME=Indonesian_Indonesia.1252
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
other attached packages:
[1] rstan_2.21.2 ggplot2_3.3.2
[3] StanHeaders_2.21.0-6 dplyr_1.0.2
[5] TMB_1.7.18 sas7bdat_0.5
[7] glmmTMB_1.0.2.1 lme4_1.1-25
[9] Matrix_1.2-18 foreign_0.8-80
loaded via a namespace (and not attached):
[1] statmod_1.4.35 tidyselect_1.1.0
[3] purrr_0.3.4 splines_4.0.3
[5] lattice_0.20-41 V8_3.4.0
[7] colorspace_2.0-0 vctrs_0.3.5
[9] generics_0.1.0 stats4_4.0.3
[11] loo_2.3.1 rlang_0.4.9
[13] pkgbuild_1.1.0 nloptr_1.2.2.2
[15] pillar_1.4.7 glue_1.4.2
[17] withr_2.3.0 matrixStats_0.57.0
[19] lifecycle_0.2.0 munsell_0.5.0
[21] gtable_0.3.0 codetools_0.2-16
[23] inline_0.3.16 callr_3.5.1
[25] ps_1.4.0 curl_4.3
[27] parallel_4.0.3 fansi_0.4.1
[29] Rcpp_1.0.5 scales_1.1.1
[31] RcppParallel_5.0.2 jsonlite_1.7.1
[33] gridExtra_2.3 processx_3.4.4
[35] grid_4.0.3 cli_2.2.0
[37] tools_4.0.3 magrittr_2.0.1
[39] tibble_3.0.4 crayon_1.3.4
[41] pkgconfig_2.0.3 MASS_7.3-53
[43] ellipsis_0.3.1 prettyunits_1.1.1
[45] assertthat_0.2.1 minqa_1.2.4
[47] rstudioapi_0.13 R6_2.5.0
[49] boot_1.3-25 nlme_3.1-149
[51] compiler_4.0.3
Thankyou. Looking forward for your answer.