-
-
Notifications
You must be signed in to change notification settings - Fork 134
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 install the development branch of 'rstanarm' on Win10 #442
Comments
Have you tried |
Thank you @ermeel86 for your reply. I don't think I have tried it. Would you please explain it more? I am not sure how can I do that. |
We're trying to figure this out ourselves too (e.g. stan-dev/r-packages#2 (comment))! There seem to be several different issues on Windows. By any chance does adding build_opts = c("--no-multiarch") work? For example, remotes::install_github(
"stan-dev/rstanarm",
ref = "feature/survival",
build_vignettes = FALSE,
build_opts = c("--no-multiarch"),
upgrade = "never" # this should ignore packages that need updates like @ermeel86 suggested (not sure if necessary though)
) |
Thank you @jgabry for your reply. I tried to install 'rstanarm' via the code you provided. Here is the error I received in the end:
|
Hi everybody,
The error occurs before the update of any package in the list (not shown). I need the function stan_surv. How can I use it? Is there any possibility to simply have a tarball file to download and directly intall without relying on GitHub? Thanks in advance for any help |
Hi, After leaving my comment I tried different things and I could go further but I can't compile the tarball. First I found the taball downloaded from GitHub on my system. Then I gziped it. After removing the locking subdirectory in the library directory I could install the vctrs package manually. The I tried to install the rstanarm_2.21.2.tar.gz file, but I get this error:
In fact the subdirectory 'C:/Program Files/R/R-4.0.2/library/RcppParallel/include' exists in my library! Any idea? Perhaps the blank character in the path of windows (but there is no error for the other include two paths in the options) |
I am sorry to hear this @GuyHedelin. The situation is really unfortunate. Let’s check with @jgabry and @bgoodri? Any updates on getting this into rstanarm at CRAN? It’s a pity that there is repeated and regular user demand for stan_surv but people can’t use it... Is there anything I can do concretely (testing / coding) to get help getting this finally solved (alternatively leading to a prebuilt binary). |
Hi @ermeel86, I think the error comes from the single quote ' used in the generated script instead of a double quote " that ensures that on windows paths with space in the name are correctly handled. But I don't know how to correct it because I don't have access to the script. I think a build for windows in a zip file could help because there would be no need of any compiling step. If you could do that it would be great. I need the stan_surv for my own work but also in my teaching examples that my students use. As you stated in your paper it is important to promote the bayesian approach to survival. Cheers! |
This is probably fixed by the newest StanHeaders on CRAN, but installing
rstanarm on Windows is still pretty dicey.
…On Sun, Aug 30, 2020 at 11:42 AM GuyHedelin ***@***.***> wrote:
Hi @ermeel86 <https://github.com/ermeel86>,
I think the error comes from the single quote ' used in the generated
script instead of a double quote " that ensures that on windows paths with
space in the name are correctly handled. But I don't know how to correct it
because I don't have access to the script. I think a build for windows in a
zip file could help because there would be no need of any compiling step.
If you could do that it would be great. I need the stan_surv for my own
work but also in my teaching examples that my students use. As you stated
in your paper it is important to promote the bayesian approach to survival.
Cheers!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#442 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZ2XKSWAXZQBWA7NTWLK5TSDJXNHANCNFSM4ODNYUUQ>
.
|
Unfortunataly not, I used the latest StanHeaders on CRAN (2.21.0-6) and the latest RccpEigen and RccpParallel. |
Yeah, I can confirm that the whitespace in the Rcpp file path still causes issues even with the new StanHeaders. I moved my R packages to a new location without the space in the file path (
After fixing that issue I was able build the Also, fwiw, @jgabry @bgoodri, even though I've been able to install using |
You can temporarily install this binary version |
Thank you @bgoodri. I'll give it a try. In fact I succeeded this morning to install it by modifying the function LdFlags in StanHeaders and rewriting some part of Makevars.win to force the use of the short form of the paths (avoiding spaces in pathnames). Nevertheless your binary version can help a lot of people. Thanks to all. |
This pre-built binary works for me. Unfortunately it doesn’t come with a manual : documentation for stan_surv, which is rather essential, given the complexity of the underlying model. Any chance we can add this as a default to the binary?
Eren
…On 31. Aug 2020, 07:11 +0200, bgoodri ***@***.***>, wrote:
You can temporarily install this binary version
https://win-builder.r-project.org/7Cl7ryfVps8c/rstanarm_2.21.2.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Yeah that's a problem! I wonder if this is because rstanarm doesn't track the Rd files on GitHub. I don't remember why that's the case but we should probably change that. rstanarm is pretty much the only R package on GitHub not tracking the Rd files. I'll open a separate issue about this. |
Summary:
I need to get access to the stan_surv() function from 'rstanarm' development package; however, I am unable to install it on my machine.
Description:
I tried to install 'rstanarm' to use it for Bayesian survival analysis in two ways:
There was a warning too:
Here is the error:
Would someone please help me with that? I am in an urgent need!
R Version:
The version of R you are running (e.g., from
getRversion()
)3.6.3
Operating System:
My operating system is Windows10
The text was updated successfully, but these errors were encountered: