inv_CheckRecipe: Recipe Checker

Description Usage Arguments

View source: R/Recipe-tools.R

Description

This function takes a recipe specification and a reference inventory and returns the number of batches of that recipe which are possible. We can use this to determine which recipes in the book are possible with the current state of the inventory.

Currently the specification simply checks that there is at least enough of every ingredient. When moving forward to potential repice planning or optimisation, it may become necessary to have the recipes expressed in a more complex data.type or as a function, to allow for multiple recipes to be solved at once, and to understand the interference with one another.

Usage

1
inv_CheckRecipe(.recipe_to_check, .inventory_to_check_against)

Arguments

.inventory_to_check_against

JDOsborne1/inventoRy documentation built on May 6, 2020, 9:29 a.m.