If certain validation steps need to be activated after the creation of the validation plan for an agent, use the activate_steps() function. This is equivalent to using the active = TRUE for the selected validation steps (active is an argument in all validation functions). This will replace any function that may have been defined for the active argument during creation of the targeted validation steps.

## Usage

activate_steps(agent, i = NULL)

## Arguments

agent

An agent object of class ptblank_agent.

i

The validation step number, which is assigned to each validation step in the order of definition.

## Value

A ptblank_agent object.

## Function ID

9-5

For the opposite behavior, use the deactivate_steps() function.

Other Object Ops: deactivate_steps(), export_report(), remove_steps(), set_tbl(), x_read_disk(), x_write_disk()

## Examples

# Create an agent that has the
# small_table object as the
# target table, add a few inactive
# validation steps, and then use
# interrogate()
agent_1 <-

tbl = small_table,
tbl_name = "small_table",
label = "An example."
) %>%

vars(date),
active = FALSE
) %>%

vars(b), regex = "[0-9]-[a-z]{3}-[0-9]{3}",
active = FALSE
) %>%

# In the above, the data is
# not actually interrogated
# because the active setting
# was FALSE in all steps; we
# can selectively change this
# with activate_steps()
agent_2 <-
agent_1 %>%
activate_steps(i = 1) %>%