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()
orlist()
ofIngredient-class
objects. If acharacter()
, will be read in usingread_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 toindexes
.