From 173d8314292dec046257087215ddbcf58cf86f12 Mon Sep 17 00:00:00 2001 From: andrewjbe <56839927+andrewjbe@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:29:00 -0500 Subject: [PATCH] remove temp code --- R/ojo_apply_regex.R | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/R/ojo_apply_regex.R b/R/ojo_apply_regex.R index db4b65e..20f97cf 100644 --- a/R/ojo_apply_regex.R +++ b/R/ojo_apply_regex.R @@ -36,17 +36,17 @@ ojo_apply_regex <- function(data, # Uncomment this for dev / debugging ----------------------------------------- # Regex list - googlesheets4::gs4_auth(email = "abell@okpolicy.org") - 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 = "abell@okpolicy.org") + # 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