set_recipes: Add or remove recipes

set_recipesR Documentation

Add or remove recipes

Description

Add or remove recipes

Usage

add_recipes(recipebook, names, ingredients)

rm_recipes(recipebook, indexes = NULL, method = c("manual", "index"))

Arguments

recipebook

object of RecipeBook-class.

names

character() containing the name of of recipes.

ingredients

character() or list() of Ingredient-class objects. If a character(), will be read in using read_ingredients().

indexes

numeric() the indexes of the recipes to change, required if method is set to 'index'.

method

character() one of 'manual' or 'index'. If 'manual', will allow users to interactively pick the recipes to add/remove as favourites. If 'index' will modify the recipes corresponding to indexes.


dzhang32/autorecipes documentation built on April 15, 2022, 3:29 a.m.