Hi everyone,
I am trying to deploy a shiny app in shinyapps.io with no success. It is a pretty simple one: I use a pre-compiled model (as solved here) and then sample from it by changing the input of some parameters to visualize the posterior predictions.
Everything works smoothly in my local machine (Ubuntu 23.04, R 4.3.1 and up-to-date related packages), but when trying to deploy, I get the following error which prevents to sample anything from my model:
2023-09-10T23:11:37.370564+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.375348+00:00 shinyapps[9820568]: For execution on a local, multicore CPU with excess RAM we recommend calling
2023-09-10T23:11:37.380418+00:00 shinyapps[9820568]: options(mc.cores = parallel::detectCores()).
2023-09-10T23:11:37.385326+00:00 shinyapps[9820568]: To avoid recompilation of unchanged Stan programs, we recommend calling
2023-09-10T23:11:37.390747+00:00 shinyapps[9820568]: rstan_options(auto_write = TRUE)
2023-09-10T23:11:37.395971+00:00 shinyapps[9820568]: For within-chain threading using `reduce_sum()` or `map_rect()` Stan functions,
2023-09-10T23:11:37.400912+00:00 shinyapps[9820568]: change `threads_per_chain` option:
2023-09-10T23:11:37.406177+00:00 shinyapps[9820568]: rstan_options(threads_per_chain = 1)
2023-09-10T23:11:37.411067+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.416169+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.421365+00:00 shinyapps[9820568]: Attaching package: ‘dplyr’
2023-09-10T23:11:37.426384+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.431367+00:00 shinyapps[9820568]: The following objects are masked from ‘package:stats’:
2023-09-10T23:11:37.436258+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.441183+00:00 shinyapps[9820568]: filter, lag
2023-09-10T23:11:37.445990+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.451102+00:00 shinyapps[9820568]: The following objects are masked from ‘package:base’:
2023-09-10T23:11:37.456142+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.460995+00:00 shinyapps[9820568]: intersect, setdiff, setequal, union
2023-09-10T23:11:37.465860+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.470762+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.475649+00:00 shinyapps[9820568]: Attaching package: ‘tidyr’
2023-09-10T23:11:37.480548+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.485507+00:00 shinyapps[9820568]: The following object is masked from ‘package:rstan’:
2023-09-10T23:11:37.490417+00:00 shinyapps[9820568]:
2023-09-10T23:11:37.495335+00:00 shinyapps[9820568]: extract
2023-09-10T23:11:37.500173+00:00 shinyapps[9820568]:
2023-09-10T23:11:38.368923+00:00 shinyapps[9820568]:
2023-09-10T23:11:38.373943+00:00 shinyapps[9820568]: Listening on http://127.0.0.1:35589
2023-09-10T23:11:40.360943+00:00 shinyapps[9820568]: Warning: Error in dyn.load: unable to load shared object '/tmp/Rtmpj3J62y/file5450751b9b.so':
2023-09-10T23:11:40.366138+00:00 shinyapps[9820568]: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /tmp/Rtmpj3J62y/file5450751b9b.so)
Could anyone help me or has an idea of what to do?