Session Aborted/Compilation ERROR
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
Hi,
I am trying to run the RStan Getting Started Code
example(stan_model, package = "rstan", run.dontrun = TRUE)
However, every time I run this either the Session aborted or I get this error message:
"Compilation ERROR, function(s)/method(s) not created!
Error in compileCode(f, code, language = language, verbose = verbose) :
sh: line 1: C:/Users/joshs/OneDrive/Dokumente/R/win-library/4.1/rtools40/ucrt64/mingw_64/bin/g++: No such file or directorymake: *** [C:/PROGRA1/R/R-411.1/etc/x64/Makeconf:245: file7ac117229b7.o] Error 127"
I have installed it from source and still get this error.
install.packages(c("StanHeaders","rstan"),type="source"
Here is my Session Info:
R version 4.1.1 (2021-08-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rstan_2.21.3 ggplot2_3.3.5 StanHeaders_2.21.0-7
loaded via a namespace (and not attached):
[1] Rcpp_1.0.8 pillar_1.7.0 compiler_4.1.1 prettyunits_1.1.1 tools_4.1.1 pkgbuild_1.3.1 lifecycle_1.0.1
[8] tibble_3.1.6 gtable_0.3.0 pkgconfig_2.0.3 rlang_1.0.2 DBI_1.1.2 cli_3.1.1 parallel_4.1.1
[15] loo_2.4.1 gridExtra_2.3 withr_2.5.0 dplyr_1.0.8 generics_0.1.2 vctrs_0.3.8 stats4_4.1.1
[22] grid_4.1.1 tidyselect_1.1.2 glue_1.6.2 inline_0.3.19 R6_2.5.1 processx_3.5.2 fansi_1.0.2
[29] purrr_0.3.4 callr_3.7.0 magrittr_2.0.2 codetools_0.2-18 matrixStats_0.61.0 scales_1.1.1 ps_1.6.0
[36] ellipsis_0.3.2 assertthat_0.2.1 colorspace_2.0-3 utf8_1.2.2 RcppParallel_5.1.5 munsell_0.5.0 crayon_1.5.0
Would be really thankful for any help, as I would love to use RStan for HB estimates.
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the RStan Getting Started call example(stan_model, package = "rstan", run.dontrun = TRUE) on the reported Windows and R 4.1.1 setup. Check the install.packages(c("StanHeaders","rstan"), type = "source") path and the missing g++ path shown in the compilation error. Done means the example compiles without the reported session abort or compiler error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100