Description Usage Arguments Value See Also Examples
View source: R/add_recipe_step.R
Adds a newly created recipe step to the database. See https://github.com/MarHai/ScrapeBot/blob/master/scrapebot/emulate.py for type descriptions.
1 2 3 4 5 6 7 8 9 10 | add_recipe_step(
connection,
recipe_uid,
type = "log",
fixed_value = "",
random_items = c(),
use_data_item_instead_of_value = FALSE,
active = TRUE,
sort = NA_integer_
)
|
connection |
A connection object, as retrieved from |
recipe_uid |
The |
type |
The type of what this step should do. Has to be one of the following as character string:
|
fixed_value |
Possibly required value (depends on type); default is an empty character string. |
random_items |
Character vector to be used as urn to draw random items for |
use_data_item_instead_of_value |
Logical indicating whether value should be taken from a previous data item. If |
active |
Boolean to indicate whether the recipe step should be active; default is |
sort |
Numeric index to have steps be run one after another. If |
The uid
(integer) of the newly created recipe step or an integer NA
in case of error.
add_recipe()
, get_recipes()
, get_recipe_steps()
1 2 3 4 5 6 7 8 9 | ## Not run:
connection <- connect('my_db on localhost')
recipe_uid <- add_recipe(connection, 'visit my website')
add_recipe_step(connection, recipe_uid, 'navigate', 'https://www.google.com/')
add_recipe_step(connection, recipe_uid, 'screenshot')
disconnect(connection)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.