Skip to content

Commit

Permalink
remove temp code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjbe committed Jun 18, 2024
1 parent 033714a commit 173d831
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions R/ojo_apply_regex.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ ojo_apply_regex <- function(data,

# Uncomment this for dev / debugging -----------------------------------------
# Regex list
googlesheets4::gs4_auth(email = "[email protected]")
ojo_regex_flags <- googlesheets4::read_sheet("https://docs.google.com/spreadsheets/d/1LyaUXb21OuBj5Cb0CewJ1lVMsVsExn6yOcfyDT5sqL0/edit?usp=sharing",
sheet = "Regex Flag List")
ojo_regex_cats <- googlesheets4::read_sheet("https://docs.google.com/spreadsheets/d/1LyaUXb21OuBj5Cb0CewJ1lVMsVsExn6yOcfyDT5sqL0/edit?usp=sharing",
sheet = "Clean Categories List",
col_types = "lcccccccccccccl") |>
dplyr::filter(in_ojoregex == TRUE)

# Save the regex data to the package data
save(ojo_regex_flags, file = here::here("data", "ojo_regex_flags.rda"))
save(ojo_regex_cats, file = here::here("data", "ojo_regex_cats.rda"))
# googlesheets4::gs4_auth(email = "[email protected]")
# ojo_regex_flags <- googlesheets4::read_sheet("https://docs.google.com/spreadsheets/d/1LyaUXb21OuBj5Cb0CewJ1lVMsVsExn6yOcfyDT5sqL0/edit?usp=sharing",
# sheet = "Regex Flag List")
# ojo_regex_cats <- googlesheets4::read_sheet("https://docs.google.com/spreadsheets/d/1LyaUXb21OuBj5Cb0CewJ1lVMsVsExn6yOcfyDT5sqL0/edit?usp=sharing",
# sheet = "Clean Categories List",
# col_types = "lcccccccccccccl") |>
# dplyr::filter(in_ojoregex == TRUE)
#
# # Save the regex data to the package data
# save(ojo_regex_flags, file = here::here("data", "ojo_regex_flags.rda"))
# save(ojo_regex_cats, file = here::here("data", "ojo_regex_cats.rda"))

# Load the regex data
regex <- ojoregex::ojo_regex_flags
Expand Down

0 comments on commit 173d831

Please sign in to comment.