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

# Example of reading a Recipe object
recipe_obj <- read_recipe("recipe.json")
#> Error in read_json(file, simplifyVector = TRUE): could not find function "read_json"
print(recipe_obj)
#> Error: object 'recipe_obj' not found