Skip to content

Commit

Permalink
Merge pull request #29 from posit-conf-2024/cs-inputs
Browse files Browse the repository at this point in the history
addl cleanup
  • Loading branch information
kmasiello authored Aug 8, 2024
2 parents ce07860 + 9a81ae1 commit acbaae5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions materials/03-data-clean-validate/03-data-clean-validate.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ Our conditions will send an email based on the the following:

✏️ There will be placeholders (`____`) in the code cells below that you will need to fill in!

## Prologue

This notebook packs a lot. In addition to data cleaning and validation code, there are mechanics going on to:

- Implement an override so in development, testing, and in this Workshop, we can force a particular outcome
- Look for logical statements that include `Sys.getenv("CONDITION_OVERRIDE")`

These mechanics are here to make this a more robust report and enable our desired conditionality. Leave these elements as they are, and don't focus on these parts during the Workshop. You're welcome to tinker with them after our day is done.

## Task 1 - Define a "condition override" so we can manually trigger a condition and see the resulting email

🔄 Task
Expand Down Expand Up @@ -415,6 +406,7 @@ Write cleaned data to database
#| label: write validated data to database
if (stop_alert != TRUE & !Sys.getenv("CONDITION_OVERRIDE") %in% conditions) {
my_username <- "______" #Fill in your username, workshop participants!
my_df_name <- paste0("modeldata_validated_", my_username)
Expand Down

0 comments on commit acbaae5

Please sign in to comment.