Skip to contents

Pipe-friendly function to assign a RecipeUser to a Recipe.

Usage

set_user_info(recipe, user)

Arguments

recipe

A Recipe object.

user

A RecipeUser object.

Value

The modified Recipe object.

Examples

r <- recipe(
  name = "Example", user = "Test",
  svy = survey_empty(type = "ech", edition = "2023"),
  description = "Example recipe"
)
user <- recipe_user("Juan Perez", email = "juan@example.com")
r <- r |> set_user_info(user)