Syntax error in '/var/folders/q4/gvrdsnj94vl527nfhj25rxh40000gn/T/RtmpAbftu1/model-cede3aff1ad3.stan', line 10, column 7 to column 8, parsing error:
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
Dear @maverickg,
Please help me out, thanks.
cmdstan_model(stan_f.name)
Compiling Stan program...
Syntax error in '/var/folders/q4/gvrdsnj94vl527nfhj25rxh40000gn/T/RtmpAbftu1/model-cede3aff1ad3.stan', line 10, column 7 to column 8, parsing error:
8: real generation_time;
9: matrix[N,D] X;
10: int Y[N,K];
^
11: int Y_sum[N];
12: }
";" expected after variable declaration.
make: *** [/var/folders/q4/gvrdsnj94vl527nfhj25rxh40000gn/T/RtmpAbftu1/model-cede3aff1ad3.hpp] Error 1
Error: An error occured during compilation! See the message above for more information.
In addition: Warning messages:
1: In get(results[[i]], packages[[i]]) :
restarting interrupted promise evaluation
2: In get(results[[i]], packages[[i]]) :
internal error -3 in R_decompress1
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 with the generated Stan snippet around line 10 and the cmdstan_model(stan.f.name) call, then check the relevant RStan and Stan versions. Reproduce the compilation failure and identify a documented, verifiable cause or correction for the reported parsing error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100