You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#262 and
insightsengineering/teal.gallery#218
Alternative solution:
#263
Functions were kept on the left side of the dependency graph, which lead
to cyclic unwanted dependencies.
Now all functions, even when used on the LHS are moved to the RHS of the
dependency graph.
```r
devtools::load_all(".")
devtools::load_all("../teal.data")
data <- teal_data()
data <- within(data, {
library(random.cdisc.data)
library(nestcolor)
ADSL <- radsl(seed = 1)
ADMH <- radmh(ADSL, seed = 1)
ADVS <- radvs(ADSL, seed = 1)
teal.data::col_labels(ADMH[c("MHDISTAT")]) <- c("Status of Disease")
ADVS <- dplyr::inner_join(x = ADVS, y = ADSL[, c("STUDYID", "USUBJID"), drop = FALSE], by = c("STUDYID", "USUBJID"))
})
data@code
cat(get_code(data, names = "ADVS"))
```
```r
library(random.cdisc.data)
library(nestcolor)
ADSL <- radsl(seed = 1)
ADVS <- radvs(ADSL, seed = 1)
ADVS <- dplyr::inner_join(x = ADVS, y = ADSL[, c("STUDYID", "USUBJID"), drop = FALSE], by = c("STUDYID", "USUBJID"))
```
---------
Signed-off-by: Marcin <[email protected]>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dawid Kałędkowski <[email protected]>
0 commit comments