Ulam Error in CompileCode
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
Summary:
Please provide a short summary (no more than a sentence or two).
Having trouble running "ulam" function from rstan due to a compileCode error.
Description:
Describe the issue as clearly as possible.
Howdy everyone,
I am trying to run the ulam function, taken straight from the R code 9.16 of the second edition of statistical rethinking. I keep on getting the same error, over and over again, which I reported in the Current Output.
rstan is successfully installed, together with devtools and the rethinking package. Might be worth mentioning that the library is currently unspecified for me, and the packages have been installed in a different library directory than the one of the R 3.6.3 installation. This has not raised any problem while using other functions such as quap.
Any help is much appreciated!
Reproducible Steps:
Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.
m9.1<-ulam(
alist(
log_gdp_std~dnorm(mu,sigma),
mu<- a[cid]+b[cid]*(rugged_std-0.215),
a[cid]~dnorm(1,0.1),
b[cid]dnorm(0,0.3),dexp(1)
sigma
), data=data_slim, chains=1)
If you have a reproducible example, please include it.
Current Output:
If applicable, any relevant output from RStan.
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! sh: C:/Program: No such file or directory
make: *** [C:/PROGRA1/R/R-361.3/etc/x64/Makeconf:215: file321834f05682.o] Error 127
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command 'C:/PROGRA1/R/R-361.3/bin/x64/R CMD SHLIB file321834f05682.cpp 2> file321834f05682.cpp.err.txt' had status 1
Error in sink(type = "output") : invalid connection
Expected Output:
If applicable, the output you expected from RStan.
RStan Version:
The version of RStan you are running (e.g., from packageVersion("rstan"))
2.19.3
R Version:
The version of R you are running (e.g., from R.version.string)
3.6.3
Operating System:
Your operating system (e.g., OS X 10.11.3)
Windows 10 Home 1903
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 reported ulam call and the RStan compileCode output on Windows 10 with R 3.6.3 and RStan 2.19.3. Investigate the reported C:/Program path error and library-directory details; done means identifying a reproducible cause and documenting a verified resolution.
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
- 25/100