From 13d439b54ec7ae287d53742ac2c3938d620badbc Mon Sep 17 00:00:00 2001 From: Craig Gower-Page Date: Wed, 18 May 2022 16:08:01 +0100 Subject: [PATCH 1/2] fixed stan cache --- .github/actions/build-src/action.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/actions/build-src/action.yml b/.github/actions/build-src/action.yml index 4e8e7dc2..5eb567da 100644 --- a/.github/actions/build-src/action.yml +++ b/.github/actions/build-src/action.yml @@ -13,8 +13,17 @@ runs: pkgs = installed.packages()[c("Rcpp", "rstan", "rstantools"), c("Version", "Package")] ) sink() - shell: Rscript {0} + - shell: Rscript {0} + # The default R/stanmodels.R was updated in v2.2.0 (11Apr2022) + # Normally for older versions it would change itself on the fly + # when it compiles the stan model + # but as we are using cached models we are preventing compilation + # and thus need to manually refresh the file + - name: Refresh rstantools config files + run: | + rstantools::rstan_config() + shell: Rscript {0} - name: Cache Compiled Stan Code id: cache-pkgs From 86253543dd00c33a51c1f23d7f6a46835d224d35 Mon Sep 17 00:00:00 2001 From: Craig Gower-Page Date: Wed, 18 May 2022 16:09:11 +0100 Subject: [PATCH 2/2] fixed syntax bug --- .github/actions/build-src/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/build-src/action.yml b/.github/actions/build-src/action.yml index 5eb567da..7d085b61 100644 --- a/.github/actions/build-src/action.yml +++ b/.github/actions/build-src/action.yml @@ -13,7 +13,7 @@ runs: pkgs = installed.packages()[c("Rcpp", "rstan", "rstantools"), c("Version", "Package")] ) sink() - - shell: Rscript {0} + shell: Rscript {0} # The default R/stanmodels.R was updated in v2.2.0 (11Apr2022) # Normally for older versions it would change itself on the fly