diff --git a/R/get_params.R b/R/get_params.R index 39a6b5c1..4654ed05 100644 --- a/R/get_params.R +++ b/R/get_params.R @@ -9,7 +9,10 @@ #' @export #' #' @examples -#' params <- get_params("input/params.toml") +#' params <- get_params(param_file = fs::path_package("extdata", +#' "example_params.toml", +#' package = "wwinference" +#' )) get_params <- function(param_file) { paramlist <- RcppTOML::parseTOML(param_file) validate_paramlist(paramlist) diff --git a/man/get_params.Rd b/man/get_params.Rd index a8c21c7e..3aebeaf0 100644 --- a/man/get_params.Rd +++ b/man/get_params.Rd @@ -18,5 +18,8 @@ model Get parameters for model run } \examples{ -params <- get_params("input/params.toml") +params <- get_params(param_file = fs::path_package("extdata", + "example_params.toml", + package = "wwinference" + )) }