Skip to content

Commit 9f181f8

Browse files
committed
Replace scda w/ random.cdisc.data for table 22 examples and tests
1 parent ad1308c commit 9f181f8

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

DESCRIPTION

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Imports:
2727
rlang (>= 0.4.11),
2828
rlistings (>= 0.2.7),
2929
rtables (>= 0.6.6),
30-
scda,
3130
tfrmt,
3231
tidyr,
3332
Tplyr

R/fda-table_22.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#' @examples
1919
#' library(dplyr)
2020
#'
21-
#' adsl <- scda::synthetic_cdisc_dataset("rcd_2022_10_13", "adsl") %>%
21+
#' adsl <- random.cdisc.data::cadsl %>%
2222
#' mutate(AGEGR1 = as.factor(case_when(
2323
#' AGE >= 17 & AGE < 65 ~ ">=17 to <65",
2424
#' AGE >= 65 ~ ">=65",
@@ -29,7 +29,7 @@
2929
#' AGE = "Age, years"
3030
#' )
3131
#'
32-
#' adae <- scda::synthetic_cdisc_dataset("rcd_2022_10_13", "adae")
32+
#' adae <- random.cdisc.data::cadae
3333
#'
3434
#' df <- left_join(adsl, adae, by = intersect(names(adsl), names(adae)))
3535
#'

man/make_table_22.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-fda-table_22.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
adsl <- scda::synthetic_cdisc_dataset("rcd_2022_10_13", "adsl") %>%
1+
adsl <- random.cdisc.data::cadsl %>%
22
mutate(AGEGR1 = as.factor(case_when(
33
AGE >= 17 & AGE < 65 ~ ">=17 to <65",
44
AGE >= 65 ~ ">=65",
@@ -10,7 +10,7 @@ adsl <- scda::synthetic_cdisc_dataset("rcd_2022_10_13", "adsl") %>%
1010
AGE = "Age, years"
1111
)
1212

13-
adae <- scda::synthetic_cdisc_dataset("rcd_2022_10_13", "adae")
13+
adae <- random.cdisc.data::cadae
1414

1515
df <- left_join(adsl, adae, by = intersect(names(adsl), names(adae)))
1616

0 commit comments

Comments
 (0)