Skip to content
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

Cannot install rstan on R.4.5.0 with Rtools44 #1129

Open
haighr opened this issue Jun 11, 2024 · 0 comments
Open

Cannot install rstan on R.4.5.0 with Rtools44 #1129

haighr opened this issue Jun 11, 2024 · 0 comments

Comments

@haighr
Copy link

haighr commented Jun 11, 2024

Summary:

I cannot install rstan using any of the recommended methods on GitHub or via 'install.packages' from CRAN.

Description:

Installing from source yields:
** testing if installed package can be loaded from temporary location
ERROR: loading failed

Installing from binary:
library(rstan) crashes R.

OS = Windows 10
R version : R.4.5.0 pre-release
RTools version : 4.4

Reproducible Steps:

It's an installation issue, possibly related to RTools44
I can install rstan on R-devel by hijacking R's environmental variable 'R_RTOOLS44_PATH' to use an earlier toolchain:
tmp = Sys.getenv()["R_RTOOLS44_PATH"]
Sys.setenv(R_RTOOLS44_PATH=gsub("44","42",tmp)) ## because I still have Rtools42
but rstan still crashes when I run the package's basic example.

Current Output:

N/A (because I cannot install rstan)

Expected Output:

N/A

RStan Version:

rstan_2.32.6.tar.gz

R Version:

"R Under development (unstable) (2024-05-27 r86634 ucrt)"

Operating System:

Windows 10 Enterprise, build 19045.4412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant