renv & rstan on Mac OS — choose a cache path without spaces
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
Summary:
On Mac, rstan does not compile when StanHeaders are in the renv cache, which, by default is under /Library/Application Support/renv, i.e. a path with a space. You can tell you have this problem, if the error message mention paths starting "Support".
Workaround:
To circumvent this, you can put the renv cache under a path without spaces by following these instructions: https://rstudio.github.io/renv/reference/paths.html
I went with /Library/Frameworks/renv/.
Reproducible Steps:
renv::init()
renv::install("rstan")
library(rstan)
scode <- "
parameters {
real y[2];
}
model {
y[1] ~ normal(0, 1);
y[2] ~ double_exponential(0, 2);
}
"
fit1 <- stan(model_code = scode, iter = 10, verbose = FALSE)
print(fit1)
RStan Version:
‘2.19.3’
R Version:
4.0.1
Operating System:
OS X Mojave 10.14.6
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 issue with the listed renv::init(), renv::install("rstan"), library(rstan), and stan() steps on OS X Mojave. Investigate how the renv cache path containing spaces affects StanHeaders during compilation; done means the example compiles and runs without the reported path error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, r
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100