Skip to content

Commit

Permalink
Remove unnecessary code in create_admiral_*.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jimrothstein committed Oct 9, 2024
1 parent a0f3d1c commit f5d538a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
19 changes: 0 additions & 19 deletions data-raw/create_admiral_adlb.R
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -42,7 +24,6 @@ usubjids <-

admiral_adlb <- filter(adlb, USUBJID %in% usubjids)


# Get previous dataset for comparison
adlb_old <- admiral::admiral_adlb

Expand Down
16 changes: 0 additions & 16 deletions data-raw/create_admiral_adsl.R
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit f5d538a

Please sign in to comment.