-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find include files when running through the worked example #187
Comments
This suggests it would be beneficial to run |
Update, I can't reproduce the error using R 4.4.1 on my Mac. I would have guessed this is an issue with an update of |
@arranhamlet @kaitejohnson I suspect this may have to do with how non-Unix-style paths are handled |
Hmm yeah in R this is why we have |
@arranhamlet Which version of R were you running before this broke if you remember? If it is a windows file system thing, I am surprised it ever worked! |
The same version, 4.4.1, very bizzare. |
This sounds like an annoying one and it also sounds like you've checked all the common sense things. I've seen an issue like this with vscode where it has shown this error message but there is in fact no error (i.e everything runs). When I looked into it it was because cmdstan didn't like file systems with spaces in them (i.e here program files). That has since been resolved for me but perhaps it has resurfaced here? I guess I would suggest/ask two things:
|
Great work resolving this! |
Interesting, so the problem is that the package gets installed in Also super curious why reinstalling R drove this! |
Glad that got you unstuck!
So I think maybe this is worth pointing the |
@arranhamlet What was the precise solution you took? Did you reset the path that your R packages install to, or just this package? Would like to scope out an issue for |
I moved the stan files from the package located at: "C:\Program Files\R\R-4.4.1\library\wwinference\stan" to a new folder I created "C:\R" and then updated the function |
Super helpful -- if you reinstall the package though, is it set up to install in |
No, it would install it back in my default R library, which is found in "C:\Program Files\R\R-4.4.1\library". I've not changed my library location, I just moved the stan files to above the Program Files directory to avoid the space in the name. |
Hmm ok-- this is good to know as its not ideal for working off something that is in development as it will not update properly when you pull from git and reinstall. I would think there is a way to specify that the library location is not in |
I think we want to avoid having this package make any assumption about where it is installed. As @seabbs says, if That said, perhaps time to reconsider depending on |
Yes, though this feels like a v2 issue! |
I think this uses cmdstanr and so will have the same error but just at install time |
Depends on where |
@dylanhmorris Ok if we close this and continue discussion in #213 ? |
Hi,
I'm running into some issues running the ww-inference-model in the worked example you provided on the github repo. The error occurs at the fitting stage, with the function
wwinference()
.The error is:
The file
functions/ar1.stan
is found in the include path stated, and if I change the order of the include files in the stan model, it can't see any of them, so its not just an issue with that file. I've scoured github/stackoverflow/discourse.mc-stan.org, but not found a solution.Steps I have tried:
OS: Windows 10
I'm running cmdstan version 2.35.0, and my session info is:
The text was updated successfully, but these errors were encountered: