get_recipes: Get a tibble of available recipes

Description Usage Arguments Value See Also Examples

View source: R/get_recipes.R

Description

Default behavior is to just retrieve all active recipes, no matter on which instance they are running. You may change this behavior in two ways (or combinations thereof):

Usage

1
get_recipes(connection, instance_uid = NULL, include_inactive = FALSE)

Arguments

connection

A connection object, as retrieved from connect_scrapebot().

instance_uid

Numeric UID or a vector of numeric UIDs of the instance to filter recipes for. Filtering is inclusive (i.e., recipes are included if they are assigned to at least one of the instances; no need to be assigned to all of them to be returned). If NULL, all recipes are provided. Defaults to NULL.

include_inactive

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

Value

A tibble listing all available recipes including its UID, name, the date then the recipe was first created, its description, whether the recipe is active, as well as the number of its runs and the date of the latest run.

See Also

get_recipe_steps()

Examples

1
2
3
4
5
6
7
8
## Not run: 

connection <- connect('my_db on localhost')
get_recipes(connection)
get_recipes(connection, include_inactive = TRUE)
disconnect(connection)

## End(Not run)

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