From f5d538ad8fabd1438e8836b4c4b9235c898272ae Mon Sep 17 00:00:00 2001 From: jimrothstein Date: Wed, 9 Oct 2024 08:23:16 -0700 Subject: [PATCH] Remove unnecessary code in create_admiral_*.R --- data-raw/create_admiral_adlb.R | 19 ------------------- data-raw/create_admiral_adsl.R | 16 ---------------- 2 files changed, 35 deletions(-) diff --git a/data-raw/create_admiral_adlb.R b/data-raw/create_admiral_adlb.R index 95de45a49..a92a07e45 100644 --- a/data-raw/create_admiral_adlb.R +++ b/data-raw/create_admiral_adlb.R @@ -1,23 +1,5 @@ # Create dataset: data/admiral_adlb.rda # This script: create_admiral_adlb.R creates dataset data/admiral_adlb.rda. -# - -# Preliminary -library(diffdf) # nolint - -# To clarify directories (can be removed) -# nolint start: object_name_linter -CACHE_DIR <- tools::R_user_dir("admiral_templates_data", which = "cache") -DATA_DIR <- "data-dir" -DATA_RAW <- "data-raw" -TEMPLATE_DIR <- "inst/templates/" - -# clean CACHE_DIR -THE_FILE <- paste0(CACHE_DIR, "/adlb.rda") -THE_FILE <- paste0(CACHE_DIR, "/adsl.rda") -if (file.exists(THE_FILE)) file.remove(THE_FILE) -# nolint end - # Create dataset data/admiral_adlb.rda @@ -42,7 +24,6 @@ usubjids <- admiral_adlb <- filter(adlb, USUBJID %in% usubjids) - # Get previous dataset for comparison adlb_old <- admiral::admiral_adlb diff --git a/data-raw/create_admiral_adsl.R b/data-raw/create_admiral_adsl.R index 98538bb2c..a2077f883 100644 --- a/data-raw/create_admiral_adsl.R +++ b/data-raw/create_admiral_adsl.R @@ -1,22 +1,6 @@ # Create dataset: data/admiral_adsl.rda # This script, create_admiral_adsl.R, creates dataset data/admiral_adsl.rda. # -# Preliminary -library(diffdf) # nolint -# -# nolint start: object_name_linter. -# To clarify directories (can be removed) -CACHE_DIR <- tools::R_user_dir("admiral_templates_data", which = "cache") -DATA_DIR <- "data-dir" -DATA_RAW <- "data-raw" -TEMPLATE_DIR <- "inst/templates/" - -# clean CACHE_DIR -THE_FILE <- paste0(CACHE_DIR, "/adlb.rda") -THE_FILE <- paste0(CACHE_DIR, "/adsl.rda") -if (file.exists(THE_FILE)) file.remove(THE_FILE) -# nolint end - # Create dataset data/admiral_adsl.rda