Publishes a Recipe object to the active backend (local JSON registry or remote API).
See also
Other recipes:
Recipe-class,
add_recipe(),
bake_recipes(),
explore_recipes(),
get_recipe(),
print.Recipe(),
read_recipe(),
recipe(),
save_recipe(),
steps_to_recipe()
Examples
set_backend("local", path = tempfile(fileext = ".json"))
r <- recipe(
name = "Example", user = "Test",
svy = survey_empty(type = "ech", edition = "2023"),
description = "Example recipe"
)
publish_recipe(r)
length(list_recipes())
#> [1] 1