-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Future RStan/StanHeaders 2.31+ Issues #1046
Comments
@hsbadr What would you think of bundling the |
I think that this is handled by the dependency on the newer version of The future issue I see now is due to merging stan-dev/math#2583 while |
But the issue is with the |
Also, the rstan 2.31 & StanHeaders 2.31 combination does not appear to be compatible with any packages. Installing a package with Stan models results in the following error:
|
Ummm. This makes sense.
I didn't run into any issues with earlier versions. So, we need to update |
Looks like we need to update |
Good call! I just tested with the latest nightly |
Yes, I've shipped it in the experimental version. This will get automatically fixed when |
When you've got a minute, would you mind backporting the |
v2.26.18 has been released. |
Brilliant, thanks! |
Looks like funmod <- "
functions {
real rtn_input(real x) {
return x;
}
}
"
rstan::expose_stan_functions(rstan::stanc(model_code = funmod))
#> Error in compiled$functions: $ operator is invalid for atomic vectors This is causing a test failure for the |
The 2.26 + 2.31 revdep checks only identified six failures in addition to those from #1034:
Looks like it might be a fairly painless transition from 2.26 -> 2.31 after all! |
Confirmed! I think the generated C++ code fails to compile. We may need to fix it in
Yes, once |
ctsem can't switch to rstantools on CRAN until CRAN stops testing on 32 bit windows, which is planned and hopefully soon but couldn't find a timeframe anywhere... |
Why is that? Do you have custom makeflags/entries that need to be added? |
the system runs out of memory when compiling on win32 so I have a bunch of exceptions and hacks coded in to create basically a dummy package on w32 systems... |
If you can link me to those, I can show you how to add them to the rstantools setup |
https://github.com/cdriveraus/ctsem/blob/master/src/Makevars.win has a bunch of commented out stuff still floating around but the core piece I needed (with the rest handled in the R code) is this, which just ignores any of the .stan code on win32:
|
If you don't want to build the models at all, then you can just use an if statement in the
|
I guess it's something simple but /x64 seems problematic somehow... running this in bash shows that it's not working as expected, as it echoes the 'not 64 bit' message when building on 64 bit R.
but also when I submitted to winbuilder with a check based on pointer size, this also didn't work, presumably because R is in both 32 bit and 64 bit form so passes such a check on bash when the build is initiated for 32 bit R? so I'm not sure this approach will suffice. |
Ah I see what you mean. It might not actually be an issue though, as the current CRAN |
Interesting, I can give it a try then... |
@cdriveraus There's a bug in the compilation of From: if(corpriortype==3) corprior= normal_lpdf(eigenvalues_sym(mcor) | 0, 1); To: if(corpriortype==3) corprior= normal_lpdf(to_vector(eigenvalues_sym(mcor)) | 0, 1); This will have next to no runtime cost since the |
ctsem is updated on CRAN, using rstantools and with the eigenvalues_sym workaround. |
I've also checked against 2.26 and 2.31 and all is passing, thanks! |
Obsoleted by #1053 |
Opening this issue to flag early any difficulties that are going to be encountered in the (eventual) transition from 2.26 -> 2.31+
Will update as/if more are encountered
The text was updated successfully, but these errors were encountered: