-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
Related with #226
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
Type: Package | ||
Package: teal.data | ||
Title: Data Model for 'teal' Applications | ||
Version: 0.3.0.9042 | ||
Version: 0.4.0 | ||
Date: 2024-01-24 | ||
Authors@R: c( | ||
person("Dawid", "Kaledkowski", , "[email protected]", role = c("aut", "cre")), | ||
person("Aleksander", "Chlebowski", , "[email protected]", role = "aut"), | ||
person("Dawid", "Kaledkowski", , "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-9533-457X")), | ||
person("Aleksander", "Chlebowski", , "[email protected]", role = "aut", | ||
comment = c(ORCID = "0000-0001-5018-6294")), | ||
person("Marcin", "Kosinski", , "[email protected]", role = "aut"), | ||
person("Andre", "Verissimo", , "[email protected]", role = "aut"), | ||
person("Andre", "Verissimo", , "[email protected]", role = "aut", comment = c(ORCID = "0000-0002-2212-339X")), | ||
person("Pawel", "Rucki", , "[email protected]", role = "aut"), | ||
person("Mahmoud", "Hallal", , "[email protected]", role = "aut"), | ||
person("Nikolas", "Burkoff", role = "aut"), | ||
|
@@ -18,8 +19,8 @@ Authors@R: c( | |
person("Dony", "Unardi", , "[email protected]", role = "rev"), | ||
person("F. Hoffmann-La Roche AG", role = c("cph", "fnd")) | ||
) | ||
Description: Utilities for data transformations compatible with 'teal' | ||
applications. | ||
Description: Provides a 'teal_data' class as a unified data model for 'teal' applications | ||
focusing on reproducibility and relational data. | ||
License: Apache License 2.0 | ||
URL: https://insightsengineering.github.io/teal.data/, | ||
https://github.com/insightsengineering/teal.data/ | ||
|
@@ -33,8 +34,7 @@ Imports: | |
methods, | ||
rlang (>= 1.1.0), | ||
stats, | ||
utils, | ||
yaml | ||
utils | ||
Suggests: | ||
knitr (>= 1.42), | ||
rmarkdown (>= 2.19), | ||
|
@@ -44,18 +44,17 @@ VignetteBuilder: | |
RdMacros: | ||
lifecycle | ||
Config/Needs/verdepcheck: mllg/checkmate, r-lib/lifecycle, r-lib/rlang, | ||
yaml=vubiostat/r-yaml, yihui/knitr, rstudio/rmarkdown, | ||
yihui/knitr, rstudio/rmarkdown, | ||
insightsengineering/teal.code, r-lib/testthat | ||
Config/Needs/website: insightsengineering/nesttemplate | ||
Encoding: UTF-8 | ||
Language: en-US | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.1 | ||
Collate: | ||
Collate: | ||
'cdisc_data.R' | ||
'data.R' | ||
'default_cdisc_join_keys.R' | ||
'formatters_var_labels.R' | ||
'deprecated.R' | ||
'dummy_function.R' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# teal.data 0.3.0.9042 | ||
# teal.data 0.4.0 | ||
|
||
### Enhancements | ||
|
||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,2 @@ | ||
.onLoad <- function(libname, pkgname) { | ||
# expose default CDISC dataset names | ||
# copy from excel file | ||
default_cdisc_keys <- yaml::yaml.load_file( | ||
system.file("cdisc_datasets/cdisc_datasets.yaml", package = "teal.data") | ||
) | ||
assign("default_cdisc_keys", default_cdisc_keys, envir = parent.env(environment())) | ||
|
||
# update default_cdisc_join_keys | ||
assign( | ||
"default_cdisc_join_keys", | ||
build_cdisc_join_keys(default_cdisc_keys), | ||
envir = parent.env(environment()) | ||
) | ||
|
||
invisible() | ||
} | ||
|
||
# use non-exported function from teal.code | ||
lang2calls <- getFromNamespace("lang2calls", "teal.code") |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ Reproducibility | |
formatters | ||
funder | ||
getter | ||
ORCID | ||
pre | ||
repo | ||
reproducibility | ||
|
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
testthat::test_that("cdisc_data returns teal_data object for objects different than old api", { | ||
adsl_raw <- as.data.frame(as.list(stats::setNames(nm = default_cdisc_join_keys["ADSL", "ADSL"]))) | ||
testthat::expect_s4_class( | ||
teal_data(adsl = adsl_raw, check = TRUE), | ||
"teal_data" | ||
testthat::test_that("cdisc_data returns teal_data object with default join_keys for given dataset", { | ||
data <- cdisc_data(ADSL = data.frame()) | ||
testthat::expect_s4_class(data, "teal_data") | ||
testthat::expect_identical( | ||
join_keys(data), | ||
default_cdisc_join_keys["ADSL"] | ||
) | ||
}) |