Fatal error running bayes_factor()
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
I want to compare two Bayesian models and always get a fatal error when running the function.
Every time I run the models, the following warning messages come:
Compiling Stan program...
sh: clang++ -mmacosx-version-min=10.13: command not found
The NEXT version of Stan will not be able to pre-process your Stan program.
Please open an issue at
https://github.com/stan-dev/stanc3/issues
if you can share or at least describe your Stan program. This will help ensure that Stan
continues to work on your Stan programs in the future. Thank you!
This message can be avoided by wrapping your function call inside suppressMessages().
Start sampling
Warning messages:
1: In system2(CXX, args = ARGS) : error in running command
2: In file.remove(c(unprocessed, processed)) :
cannot remove file '/var/folders/2s/_43kyxq500jc0kzljbg3r26c0000gn/T//RtmpbzKpTr/file3095bedc50e.stan', reason 'No such file or directory'
In addition, I get a fatal error when I want to run the function bayes_factor().
I am currently operating with MacOS BigSur 11.6.1., RStudio 1.4.1106.
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 bayes_factor() on macOS Big Sur with RStudio 1.4.1106 and inspect the reported clang++ compilation failure. Done means the Stan program compiles and bayes_factor() completes without the fatal error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, r
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100