Skip to content

[Bug]: Vignettes use datasets no longer available #865

@llrs-roche

Description

@llrs-roche

What happened?

On vignettes there are calls to teal.modules.general datasets, but those were moved in favor of teal.data
Something along this (from association plot vignette, section 2):

data <- teal_data()
data <- within(data, {
-  ADSL <- teal.modules.general::rADSL %>%
+  ADSL <- teal.data::rADSL %>%
    mutate(TRTDUR = round(as.numeric(TRTEDTM - TRTSDTM), 1))
-  ADRS <- teal.modules.general::rADRS
+  ADRS <- tealdata::rADRS
-  ADTTE <- teal.modules.general::rADTTE
+  ADTTE <- teal.data::rADTTE
-  ADLB <- teal.modules.general::rADLB %>%
+  ADLB <- teal.data::rADLB %>%
    mutate(CHGC = as.factor(case_when(
      CHG < 1 ~ "N",
      CHG > 1 ~ "P",
      TRUE ~ "-"
    )))
})
datanames <- c("ADSL", "ADRS", "ADTTE", "ADLB")
datanames(data) <- datanames
join_keys(data) <- default_cdisc_join_keys[datanames]

This might affect some options or variables, so vignettes should be double checked they run successfully.

sessionInfo()

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcore

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions