Skip to content

Commit

Permalink
chore: #2526 rename file to be explicit in what it is doing; reran qu…
Browse files Browse the repository at this point in the history
…eries code and some fun things were found!! /s
  • Loading branch information
bms63 committed Oct 25, 2024
1 parent 65b7006 commit 4e2a429
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,20 @@ adae <- tibble::tribble(
"APPLICATION SITE ERYTHEMA", "Application site erythema", 1
)

# create queries.rda in data/
usethis::use_data(queries, overwrite = TRUE)

# try below:
derive_vars_query(adae, queries)


# example to use for ADMH:
queries_mh <- queries %>%
filter(SRCVAR %in% c("AELLT", "AEDECOD")) %>%
mutate(SRCVAR = ifelse(SRCVAR == "AELLT", "MHLLT", "MHDECOD"))

usethis::use_data(queries_mh, overwrite = TRUE)

source("inst/templates/ad_admh.R", echo = TRUE) # nolint

# Currently producing an error
derive_vars_query(admh, queries_mh)
Binary file modified data/queries.rda
Binary file not shown.
Binary file modified data/queries_mh.rda
Binary file not shown.

0 comments on commit 4e2a429

Please sign in to comment.