Skip to contents

Reads a Recipe object from a JSON file.

Usage

read_recipe(file)

Arguments

file

A character string specifying the file path.

Value

A Recipe object.

Details

This function reads a JSON file and decodes it into a Recipe object.

Examples

if (FALSE) { # \dontrun{
# Example of reading a Recipe object
recipe_obj <- read_recipe("recipe.json")
print(recipe_obj)
} # }