add.recipe: Add recipe from yaml file

Description Usage Arguments Author(s) Examples

Description

This function reads a recipe described in a yaml file. Fields must contain:

Usage

1
2
add.recipe(x = "new.recipe.yml", title = NULL, date = NULL,
  author = NULL, ingredients = NULL, description = NULL)

Arguments

x

a yml file to save the recipe; if NULL, no file is saved

title

the title of the recipe

date

the date of entry, e.g. 2016-08-19

author

the author of the recipe

ingredients

a vector of characters indicating ingredients

description

a vector of characters giving cooking instructions

Author(s)

Thibaut Jombart thibautjombart@gmail.com

Examples

1
2
add.recipe("test")
file.show("test.yml")

thibautjombart/eatR documentation built on May 31, 2019, 9:56 a.m.