-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Following installation instructions and running on Mac OS yields /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/StanHeaders/include/stan/math/prim/core/init_threadpool_tbb.hpp:9:10: fatal error: 'tbb/tbb_stddef.h' file not found.
Got around this by copy/pasting PKG_LIBS and PKG_CPPFLAGS from the output of example(stan_model, package = "rstan", run.dontrun = TRUE, verbose=TRUE) to Makevars. This works in the Docker image build too.
It looks like those values change depending on the operating system, and need to exist in Makevars before installation...perhaps something like sed could do this?
Another problem: the output of min ( int, int ); in the .stan files returns real.
The quick fix in src/stan_files/symptom_report_model.stan, line 95:
int ddxx_left = min( ddxx, t_rep_symptoms );
ddxx = max( ddxx_left, 1 );
int sdxx_left = min( ll_symptoms[idx] + t_symptom_pre, t_max );
sdxx = max( sdxx_left, 1 );
And in src/stan_files/symptom_report_model_gamma.stan, line 83:
int ddxx_left = min( ddxx, t_rep_symptoms );
ddxx = max( ddxx_left, 1 );
int sdxx_left = min( ll_symptoms[idx] + t_symptom_pre, t_max );
sdxx = max( sdxx_left, 1 );