Using the rstanarm package does not work with r-lib/actions/setup-renv@v2. Here is a simple package which demonstrates the problem. The resulting log file is not overly information, reporting:
Moving shinystan [2.6.0] into the cache ...
OK [moved to cache in 14 milliseconds]
Installing rstanarm [2.21.3] ...
FAILED
Error installing package 'rstanarm':
====================================
* installing *source* package ‘rstanarm’ ...
** package ‘rstanarm’ successfully unpacked and MD5 sums checked
** using staged installation
Setting `RoxygenNote` to "7.2.3"
Loading required package: Rcpp
Loading required package: bayesplot
This is bayesplot version 1.10.0
- Online documentation and vignettes at mc-stan.org/bayesplot
- bayesplot theme set to bayesplot::theme_default()
* Does _not_ affect other ggplot2 plots
* See ?bayesplot_theme_set for details on theme setting
Loading required package: ggplot2
Loading required package: lme4
Loading required package: Matrix
Loading required package: loo
This is loo version 2.5.1
- Online documentation and vignettes at mc-stan.org/loo
- As of v2.0.0 loo defaults to 1 core but we recommend using as many as possible. Use the 'cores' argument or set options(mc.cores = NUM_CORES) for an entire session.
Loading required package: nlme
Attaching package: ‘nlme’
The following object is masked from ‘package:lme4’:
lmList
Loading required package: rstan
Loading required package: StanHeaders
rstan (Version 2.21.8, GitRev: 2e1f913d3ca3)
For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores()).
To avoid recompilation of unchanged Stan programs, we recommend calling
rstan_options(auto_write = TRUE)
Loading required package: rstantools
This is rstantools version 2.2.0
Loading required package: shinystan
Loading required package: shiny
Error: Error: package or namespace load failed for ‘shinystan’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/runner/work/_temp/renv/cache/v5/R-4.2/x86_64-pc-linux-gnu/igraph/1.4.1/a7ef0d811cb66d8be9da0d7b5ab80ded/igraph/libs/igraph.so':
libglpk.so.40: cannot open shared object file: No such file or directory
Loading required package: survival
Loading required package: RcppParallel
Any suggestions?
Thanks to @Gabor for helping me with previous steps in this problem.