Reads a Recipe object from a JSON file.
Examples
r <- recipe(
name = "Example", user = "Test",
svy = survey_empty(type = "ech", edition = "2023"),
description = "Example recipe"
)
f <- tempfile(fileext = ".json")
save_recipe(r, f)
#> The recipe has been saved in /tmp/RtmpkNIXgg/file26a26b231c01.json
r2 <- read_recipe(f)
#> Warning: Failed to parse recipe steps: invalid length 0 argument. Using raw strings as fallback.
r2
#>
#> ── Recipe: Example ──
#> Author: Test
#> Survey: ech / 2023
#> Version: 1.0.0
#> Topic:
#> DOI:
#> Description: Example recipe
#> Certification: community
#>