set_favourites: Add or remove favourite recipes

set_favouritesR Documentation

Add or remove favourite recipes

Description

Add or remove favourite recipes

Usage

add_favourites(recipebook, indexes, method = c("index", "manual"))

rm_favourites(recipebook, indexes, method = c("index", "manual"))

Arguments

recipebook

object of RecipeBook-class.

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.