-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Listing print correctly | ||
|
||
Code | ||
full_spec %>% filter_spec(., program %in% c("t_ds_slide", "t_ds_trt_slide"), | ||
verbose = TRUE) | ||
Output | ||
v 2/47 outputs matched the filter condition `program %in% c("t_ds_slide", "t_ds_trt_slide")`. | ||
$t_ds_slide_FAS | ||
$t_ds_slide_FAS$program | ||
[1] "t_ds_slide" | ||
$t_ds_slide_FAS$titles | ||
[1] "Patient Disposition" | ||
$t_ds_slide_FAS$footnotes | ||
[1] "t_ds footnotes" | ||
$t_ds_slide_FAS$paper | ||
[1] "L6" | ||
$t_ds_slide_FAS$suffix | ||
[1] "FAS" | ||
$t_ds_slide_FAS$output | ||
[1] "t_ds_slide_FAS" | ||
$t_ds_trt_slide_SE | ||
$t_ds_trt_slide_SE$program | ||
[1] "t_ds_trt_slide" | ||
$t_ds_trt_slide_SE$titles | ||
[1] "Patients Who Discontinued From Study Treatment" | ||
$t_ds_trt_slide_SE$footnotes | ||
[1] "ds trt footnotes" | ||
$t_ds_trt_slide_SE$paper | ||
[1] "L6" | ||
$t_ds_trt_slide_SE$suffix | ||
[1] "SE" | ||
$t_ds_trt_slide_SE$args | ||
$t_ds_trt_slide_SE$args$arm | ||
[1] "TRT01A" | ||
$t_ds_trt_slide_SE$args$colcount | ||
[1] FALSE | ||
$t_ds_trt_slide_SE$args$drug_vars | ||
[1] "A: Drug X" "B: Placebo" "C: Combination" | ||
$t_ds_trt_slide_SE$args$drug_names | ||
[1] "Drug X" "Placebo" "Combination" | ||
$t_ds_trt_slide_SE$args$drug_sdt | ||
[1] "TRTSDT" "TRTSDT" "TRTSDT" | ||
$t_ds_trt_slide_SE$args$drug_discfl | ||
[1] "DTRFL" "DTRFL" "DTRFL" | ||
$t_ds_trt_slide_SE$args$drug_discst | ||
[1] "EOTSTT" "EOTSTT" "EOTSTT" | ||
$t_ds_trt_slide_SE$args$drug_discrs | ||
[1] "DCSREAS" "DCSREAS" "DCSREAS" | ||
$t_ds_trt_slide_SE$output | ||
[1] "t_ds_trt_slide_SE" | ||
attr(,"class") | ||
[1] "spec" "list" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
library(filters) | ||
|
||
test_that("Listing print correctly", { | ||
# skip_if_too_deep(1) | ||
load_filters(file.path(system.file(package = "autoslider.core"), "filters.yml"), overwrite = TRUE) | ||
|
||
spec_file <- file.path(system.file(package = "autoslider.core"), "spec.yml") | ||
|
||
full_spec <- spec_file %>% | ||
read_spec() | ||
|
||
expect_snapshot(full_spec %>% | ||
filter_spec(., program %in% c( | ||
"t_ds_slide", | ||
"t_ds_trt_slide" | ||
), verbose = TRUE)) | ||
}) |