check_step: Ensure the plate's status is at the right step

Description Usage Examples

View source: R/plate-attribs.R

Description

Before beginning a step, you can check to make sure the plate is currently at most one step behind the current step. If the plate is more than one step behind, an error will be thrown, so that the user will know they need to run the previous steps.

Usage

1
check_step(plate, step)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
dir <- sample_data_dir()
plate <- new_plate(dir)
status(plate) # current step
check_step(plate, 2) # are we ready to start step 2?
check_step(plate, 3) # are we ready to start step 3?
plate <- next_step(plate)
status(plate)
check_step(plate, 3) # now are we ready to start step 3?  

## End(Not run)

ddpcr documentation built on May 27, 2018, 5:05 p.m.