Skip to content

Commit

Permalink
remove bad example
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Jun 27, 2024
1 parent e7e8e3a commit 51ac705
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: cmdstan env vars
run: |
echo "CMDSTAN=${HOME}/.cmdstan" >> $GITHUB_ENV
shell: bash

- name: Install cmdstan
run: |
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
cmdstanr::install_cmdstan(cores = 2)
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
4 changes: 0 additions & 4 deletions R/model.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
#' @param time_type One of 'relative' or 'absolute'.
#' @param ... Named arguments to the `sample()` method of CmdStan model
#' objects: <https://mc-stan.org/cmdstanr/reference/model-method-sample.html>
#' @examples
#' if (instantiate::stan_cmdstan_exists()) {
#' res <- run_model(data = dt, priors = epikinetic_priors(), chains = 4, parallel_chains = 4, iter_warmup = 100, iter_sampling = 400, threads_per_chain = 4)
#' }
run_model <- function(priors,
data = NULL,
file_path = NULL,
Expand Down

0 comments on commit 51ac705

Please sign in to comment.