Skip to content

[Bug]: Code reproducibility in examples #1406

@llrs-roche

Description

@llrs-roche

What happened?

While checking for reproducibility of module's R code I realized we are using datasets in the examples that are only on the package. If the code in "Show R code" is copied and pasted to a new R session it won't run as the data won't be available:

ADSL <- tmc_ex_adsl
ADTTE <- tmc_ex_adtte
stopifnot(rlang::hash(ADSL) == "a5ae18b41288b967988d7c260b5fb4f6") # @linksto ADSL
stopifnot(rlang::hash(ADTTE) == "1a66eb6f55ebc2863f3dc1bc1932b061") # @linksto ADTTE

These objects are not available unless one loads teal.modules.clinical (which is available when the examples are run). Should we add teal.modules.clinical:: on the data objects of all the examples?

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

No one assigned

    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