The serodynamics package comes bundled with a number of sample files
in its inst/extdata
directory.
This serodynamics_example()
function make those sample files
easy to access.
Value
a character string providing
the path to the file specified by file
,
or a vector or available files if file = NULL
.
Details
Adapted from readr::readr_example()
following the guidance in
https://r-pkgs.org/data.html#sec-data-example-path-helper.
Examples
serodynamics_example()
#> [1] "SEES_Case_Nepal_ForSeroKinetics_02-13-2025.csv"
#> [2] "model.dobson.jags"
#> [3] "model.jags"
serodynamics_example(
"SEES_Case_Nepal_ForSeroKinetics_02-13-2025.csv")
#> /home/runner/work/_temp/Library/serodynamics/extdata/SEES_Case_Nepal_ForSeroKinetics_02-13-2025.csv