Skip to content

Commit

Permalink
fix vignette syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Oct 7, 2024
1 parent a00da6e commit f01e8fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-relative-dates.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
test_that("Using relative and absolute dates gives the same answer", {
# these take a while, so don't run on CI
skip_on_ci()
dat_absolute <- data.table::fread(test_path("testdata", "delta_full_relative.rds"))
dat_absolute <- data.table::fread(system.file("delta_full.rds", package = "epikinetics"))
mod_absolute <- biokinetics$new(data = dat_absolute, covariate_formula = ~0 + infection_history)
delta_absolute <- mod_absolute$fit(parallel_chains = 4,
iter_warmup = 50,
Expand All @@ -11,7 +11,7 @@ test_that("Using relative and absolute dates gives the same answer", {
set.seed(1)
trajectories_absolute <- mod_absolute$simulate_individual_trajectories()

dat_relative <- data.table::fread(system.file("delta_full_relative.rds", package = "epikinetics"))
dat_relative <- data.table::fread(test_path("testdata", "delta_full_relative.rds"))
mod_relative <- biokinetics$new(data = dat_relative, covariate_formula = ~0 + infection_history)
delta_relative <- mod_relative$fit(parallel_chains = 4,
iter_warmup = 50,
Expand Down
6 changes: 3 additions & 3 deletions vignettes/data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: "A guide to model input and output data"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{A guide to model input and output data}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
%\VignetteIndexEntry{A guide to model input and output data}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
Expand Down

0 comments on commit f01e8fe

Please sign in to comment.