Provides access to Julia EpiAware functions not yet wrapped in R. This is an "escape hatch" for accessing newer or experimental EpiAware features before they get explicit R wrappers.

epiaware_call(
  fn_name,
  ...,
  .param_map = NULL,
  .class = c("epiaware_generic", "epiaware_model")
)

Arguments

fn_name

Character string. Name of the Julia function to call.

...

Named arguments to pass to the Julia function.

.param_map

Named character vector mapping R parameter names to Julia names. Use this when Julia uses Greek letters or other characters not easily typed in R. Example: c(theta_priors = "θ_priors", eps_t = "ϵ_t").

.class

Character vector. S3 classes to add to the returned object. Default is c("epiaware_generic", "epiaware_model").

Value

An S3 object containing the Julia reference and specifications.

Examples

if (FALSE) { # \dontrun{
# Call a hypothetical new EpiAware component not yet wrapped
custom_model <- epiaware_call(
  "NewLatentModel",
  param1 = 0.5,
  param2 = norm(0, 1)
)

# For Julia functions with Greek letters, use parameter mapping
eps_model <- epiaware_call("HierarchicalNormal", halfnorm(0.1))
ma2 <- epiaware_call(
  "MA",
  theta_priors = list(norm(0, 0.1), norm(0, 0.1)),
  eps_t = eps_model,
  .param_map = c(theta_priors = "θ_priors", eps_t = "ϵ_t")
)
} # }