diff --git a/.github/workflows/check-standalone.yaml b/.github/workflows/check-standalone.yaml index fc00602..ceeb27a 100644 --- a/.github/workflows/check-standalone.yaml +++ b/.github/workflows/check-standalone.yaml @@ -38,11 +38,12 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: local::. rcmdcheck BH RcppParallel RcppEigen Rcpp rstan StanHeaders RCurl remotes + extra-packages: local::. rcmdcheck BH RcppParallel RcppEigen Rcpp rstan StanHeaders RCurl remotes V8 - name: Checkout lgpr package run: | - git clone https://github.com/jtimonen/lgpr + git clone https://github.com/andrjohns/lgpr + cd lgpr && git checkout array-syntax - name: Check against CRAN StanHeaders and CRAN RStan run: | diff --git a/.github/workflows/check-standard.yaml b/.github/workflows/check-standard.yaml index 680dc7b..f90fd68 100644 --- a/.github/workflows/check-standard.yaml +++ b/.github/workflows/check-standard.yaml @@ -42,7 +42,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: rcmdcheck BH RcppParallel RcppEigen Rcpp rstan StanHeaders + extra-packages: rcmdcheck BH RcppParallel RcppEigen Rcpp rstan StanHeaders V8 - name: Check against CRAN StanHeaders and CRAN RStan uses: r-lib/actions/check-r-package@v2 diff --git a/R/rstan_config.R b/R/rstan_config.R index 9e71ba4..a73d684 100644 --- a/R/rstan_config.R +++ b/R/rstan_config.R @@ -199,7 +199,7 @@ rstan_config <- function(pkgdir = ".") { # Stanc3 gives 'auto' return type for standalone functions, which # causes errors with Rcpp::export, so need to replace the auto # return with the plain type from the main definition - if(utils::packageVersion('rstan') >= "2.26") { + if(utils::packageVersion('rstan') >= "2.26" && utils::packageVersion('StanHeaders') < "2.33") { # Extract line numbers of functions to be exported decl_lines = grep("// \\[\\[Rcpp::export]]",cpp_lines) + 1