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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.