Render a scenario as an upload tar filename.

as_tarname(
  x,
  ext = ".tar.gz",
  pre = "outputs",
  withFieldLabel = .scenario_env$withFieldLabel
)

Arguments

x

A scenario, or anything coercible via as_scenario().

ext

File extension (default ".tar.gz").

pre

Path prefix (default "outputs").

withFieldLabel

Character vector of field names whose value should be prefixed with the field name in the path (paste0(label, value) instead of bare value). Defaults to the value registered via register_scenario_format(); pass character(0) to force the bare-value default.