get_recipe_steps: Get a tibble of a given recipe's steps

Description Usage Arguments Value See Also Examples

View source: R/get_recipe_steps.R

Description

Get a tibble of a given recipe's steps

Usage

1
get_recipe_steps(connection, recipe_uid, include_inactive = FALSE)

Arguments

connection

A connection object, as retrieved from connect_scrapebot().

recipe_uid

Numeric UID or a vector of numeric UIDs of the recipe to retrieve steps for.

include_inactive

If TRUE, inactive recipes are included along active recipes; defaults to FALSE.

Value

A tibble listing all recipe steps including their recipe_uid, UID, type, value (if necessary; depending on type), whether the step builds on a randomly picked item, whether the step builds on previously collected data, whether it is active, as well as a character vector of random items to choose from (if use_random_item).

See Also

get_recipes()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

connection <- connect('my_db on localhost')
get_recipe_steps(connection, recipe_uid = 21)
get_recipe_steps(connection, recipe_uid = c(21, 32))
get_recipe_steps(
    connection,
    recipe_uid = 21,
    include_inactive = TRUE
)
disconnect(connection)

## End(Not run)

MarHai/ScrapeBotR documentation built on March 10, 2021, 10:10 a.m.