@andrjohns now that Ben reviewed and merged your PRs is there anything else you wanted to get in to the rstantools update or should I go ahead and prepare the CRAN submission?
so we’ll have to sort that out before submitting. While we’re dealing with that I’ll run all the other checks that CRAN wants (e.g., checking on winbuilder) and get everything ready to submit as soon as we’re set.
That error is safe to ignore for now, it’s occurring because stanc3 is emitting size without the math:: namespace qualifier - which is only an issue for the rstan 2.26 and StanHeaders 2.26 combination. I’ll open a PR to backport the stanc3 fixes to rstan 2.26, so user’s development workflows shouldn’t break
Actually, there’s one more minor patch needed for the stanfunctions support that I’ve just identified while testing the patch mentioned above, will open in just a tick
EDIT: @jonah rstantools PR opened here. The GHA will still fail for 2.26 until the above rstan PR is merged and new binaries released
EDIT 2: New binaries released and GHA checks passing now
I just submitted the rstantools update to CRAN. I’ll give another update here when it has been accepted. Thanks everyone for your patience and help getting this sorted out!
thanks for checking, yes it’s working on windows too, on ubuntu it’s just stuck forever at
/home/dricha/R/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/get_pointer.hpp: At global scope:
/home/dricha/R/x86_64-pc-linux-gnu-library/4.2/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
48 | template<class T> T * get_pointer(std::auto_ptr<T> const& p)
| ^~~~~~~~
In file included from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from /home/dricha/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include/RcppCommon.h:53,
from /home/dricha/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include/Rcpp.h:27,
from stan_files/ctsmgen.cc:1:
/usr/include/c++/9/bits/unique_ptr.h:53:28: note: declared here
53 | template<typename> class auto_ptr;
|
I’ve added that in already, doesn’t help, but I am going to see how it goes with rstantools again – I think CRAN has stopped checking on win32 completely which should make it viable without all my workarounds now…
I think my ubuntu test box was hitting some kind of compiler time out yesterday. confirming now that building ctsem with cpp17 works across platforms with both rstan 2.21 and 2.26. Thanks.