Skip to content

Commit

Permalink
chore: #2595 adjust wording of message and update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
bms63 committed Jan 11, 2025
1 parent 6062921 commit 2e875e2
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion R/derive_param_extreme_record.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ derive_param_extreme_record <- function(dataset = NULL,
what = "derive_param_extreme_record()",
with = "derive_extreme_event()",
details = c(
x = "This message will turn into a warning for at least one year.",
x = "This message will turn into a warning at the beginning of 2026.",
i = "See admiral's deprecation guidance:
https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation"
)
Expand Down
4 changes: 2 additions & 2 deletions R/derive_var_dthcaus.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ derive_var_dthcaus <- function(dataset,
what = "derive_var_dthcaus()",
with = "derive_vars_extreme_event()",
details = c(
x = "This message will turn into a warning for at least one year.",
x = "This message will turn into a warning at the beginning of 2026.",
i = "See admiral's deprecation guidance:
https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation"
)
Expand Down Expand Up @@ -333,7 +333,7 @@ dthcaus_source <- function(dataset_name,
what = "dthcaus_source()",
with = "event()",
details = c(
x = "This message will turn into a warning for at least one year.",
x = "This message will turn into a warning at the beginning of 2026.",
i = "See admiral's deprecation guidance:
https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation"
)
Expand Down
6 changes: 3 additions & 3 deletions R/derive_var_extreme_date.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ derive_var_extreme_dtm <- function(dataset,
what = "derive_var_extreme_dtm()",
with = "derive_vars_extreme_event()",
details = c(
x = "This message will turn into a warning for at least one year.",
x = "This message will turn into a warning at the beginning of 2026.",
i = "See admiral's deprecation guidance:
https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation"
)
Expand Down Expand Up @@ -572,7 +572,7 @@ derive_var_extreme_dt <- function(dataset,
what = "derive_var_extreme_dt()",
with = "derive_vars_extreme_event()",
details = c(
x = "This message will turn into a warning for at least one year.",
x = "This message will turn into a warning at the beginning of 2026.",
i = "See admiral's deprecation guidance:
https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation"
)
Expand Down Expand Up @@ -656,7 +656,7 @@ date_source <- function(dataset_name,
what = "date_source()",
with = "event()",
details = c(
x = "This message will turn into a warning for at least one year.",
x = "This message will turn into a warning at the beginning of 2026.",
i = "See admiral's deprecation guidance:
https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation"
)
Expand Down
2 changes: 1 addition & 1 deletion R/get_summary_records.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ get_summary_records <- function(dataset,
what = "get_summary_records()",
with = "derive_summary_records()",
details = c(
x = "This message will turn into a warning for at least one year.",
x = "This message will turn into a warning at the beginning of 2026.",
i = "See admiral's deprecation guidance:
https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/derive_param_extreme_record.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
Message
`derive_param_extreme_record()` was deprecated in admiral 1.2.0.
i Please use `derive_extreme_event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation

6 changes: 3 additions & 3 deletions tests/testthat/_snaps/derive_var_dthcaus.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Message
`dthcaus_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
src_ds <- dthcaus_source(dataset_name = "ds", filter = DSDECOD == "DEATH" &
Expand All @@ -15,15 +15,15 @@
Message
`dthcaus_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
derive_var_dthcaus(adsl, source_datasets = list(ae = ae, ds = ds), src_ae,
src_ds)
Message
`derive_var_dthcaus()` was deprecated in admiral 1.2.0.
i Please use `derive_vars_extreme_event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Output
# A tibble: 3 x 3
Expand Down
22 changes: 11 additions & 11 deletions tests/testthat/_snaps/derive_var_extreme_date.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,41 @@
Message
`date_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
ae_end <- date_source(dataset_name = "ae", date = AEENDTM)
Message
`date_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
adsl_trtdate <- date_source(dataset_name = "adsl", date = TRTEDTM)
Message
`date_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
adsl_dthdate <- date_source(dataset_name = "adsl", date = DTHDT, filter = nchar(
DTHDTC) >= 10)
Message
`date_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
derive_var_extreme_dt(adsl, new_var = LSTALVDT, source_datasets = list(ae = ae,
adsl = adsl), ae_start, ae_end, adsl_trtdate, adsl_dthdate, mode = "last")
Message
`derive_var_extreme_dt()` was deprecated in admiral 1.2.0.
i Please use `derive_vars_extreme_event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
`derive_var_extreme_dtm()` was deprecated in admiral 1.2.0.
i Please use `derive_vars_extreme_event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Output
# A tibble: 3 x 6
Expand All @@ -57,23 +57,23 @@
Message
`date_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
ae_end <- date_source(dataset_name = "ae", date = AEENDTM, set_values_to = exprs(
LALVDOM = "AE", LALVSEQ = AESEQ, LALVVAR = "AEENDTC"))
Message
`date_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
adsl_trtdate <- date_source(dataset_name = "adsl", date = TRTEDTM,
set_values_to = exprs(LALVDOM = "ADSL", LALVSEQ = NA_integer_, LALVVAR = "TRTEDTM"))
Message
`date_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
adsl_dthdate <- date_source(dataset_name = "adsl", date = DTHDT, filter = nchar(
Expand All @@ -82,15 +82,15 @@
Message
`date_source()` was deprecated in admiral 1.2.0.
i Please use `event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Code
derive_var_extreme_dtm(adsl, new_var = LSTALVDTM, source_datasets = list(ae = ae,
adsl = adsl), ae_start, ae_end, adsl_trtdate, adsl_dthdate, mode = "last")
Message
`derive_var_extreme_dtm()` was deprecated in admiral 1.2.0.
i Please use `derive_vars_extreme_event()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Output
# A tibble: 3 x 9
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/get_summary_records.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
Message
`get_summary_records()` was deprecated in admiral 1.2.0.
i Please use `derive_summary_records()` instead.
x This message will turn into a warning for at least one year.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation

0 comments on commit 2e875e2

Please sign in to comment.