Skip to content

Commit

Permalink
remove white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rammprasad committed Jun 18, 2024
1 parent fd1f60f commit a0bab7f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion R/assign_datetime.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ assign_datetime <-
raw_unk = c("UN", "UNK"),
id_vars = oak_id_vars(),
.warn = TRUE) {

admiraldev::assert_character_vector(raw_var)
admiraldev::assert_character_scalar(tgt_var)
admiraldev::assert_character_vector(id_vars)
Expand Down
3 changes: 0 additions & 3 deletions R/hardcode.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ sdtm_hardcode <- function(tgt_dat = NULL,
ct_spec = NULL,
ct_clst = NULL,
id_vars = oak_id_vars()) {

admiraldev::assert_character_scalar(raw_var)
admiraldev::assert_character_scalar(tgt_var)
admiraldev::assert_character_scalar(tgt_val)
Expand Down Expand Up @@ -177,7 +176,6 @@ hardcode_no_ct <- function(tgt_dat = NULL,
raw_var,
tgt_var,
id_vars = oak_id_vars()) {

admiraldev::assert_character_scalar(raw_var)
admiraldev::assert_character_scalar(tgt_var)
assertthat::assert_that(assertthat::is.scalar(tgt_val),
Expand Down Expand Up @@ -211,7 +209,6 @@ hardcode_ct <-
ct_spec,
ct_clst,
id_vars = oak_id_vars()) {

admiraldev::assert_character_scalar(raw_var)
admiraldev::assert_character_scalar(tgt_var)
assertthat::assert_that(assertthat::is.scalar(tgt_val),
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-assign.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ test_that("assign_ct works as expected with both `raw_dat` and `tgt_dat` as cond
expected_result <-
fa_tgt_dat |>
tibble::add_column(FASPEC = c("SWABBED MATERIAL", NA, NA, "URINE", NA))

expect_identical(result, expected_result)
})

Expand Down

0 comments on commit a0bab7f

Please sign in to comment.