add.recipe: Add recipe from yaml file

Description Usage Arguments Author(s) Examples

View source: R/add.recipe.R

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 [email protected]

Examples

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

thibautjombart/eatR documentation built on May 27, 2017, 6:30 a.m.