Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tests/testthat/source_code/lsfecg02.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ result1 <- result %>%

colwidth <- c(21, 13, 18, 38, 75, 15, 50, 24, 15, 14)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
head(result1, 100),
file = paste0(fileid, "PART1OF3"),
orientation = "landscape"
Expand All @@ -221,7 +222,8 @@ result2 <- result %>%

colwidth <- c(21, 13, 18, 29, 74, 27, 50, 24, 15, 14)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
head(result2, 100),
file = paste0(fileid, "PART2OF3"),
orientation = "landscape"
Expand All @@ -232,7 +234,8 @@ result3 <- result %>%

colwidth <- c(18, 13, 18, 41, 75, 16, 50, 24, 15, 14)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
head(result3, 100),
file = paste0(fileid, "PART3OF3"),
orientation = "landscape"
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/lsfvit02.R
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(21, 13, 18, 31, 74, 18, 50, 26, 15, 19)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
head(result, 100),
file = paste0(fileid),
orientation = "landscape"
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/source_code/lsids04.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ result <- set_titles(result, tab_titles)
# Output listing
###############################################################################

colwidth <- c(21, 13, 18,23)
colwidth <- c(21, 13, 18, 23)

tt_to_tlgrtf(colwidths = colwidth, head(result, 100), file = fileid, orientation = "landscape")
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfae21a.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(64, 21, 21, 21, 21, 21, 21, 17, 23, 21, 21, 17, 21, 21, 19, 17)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "portrait",
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfae21b.R
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(64, 21, 17, 19, 17, 21, 21, 21, 17, 17, 17, 21, 19, 23, 17, 19, 17, 21, 21, 21, 17, 17, 17, 17, 17)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "landscape",
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfae21c.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(64, 21, 21, 23, 21)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "portrait",
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfae21d.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(64, 21, 21, 23, 21)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "portrait",
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfae22a.R
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(64, 21, 21, 21, 23, 21, 21, 19, 19, 19, 21, 21, 21, 19, 21, 21, 21, 19, 19, 19, 21)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "portrait",
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfae22b.R
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(64, 21, 21, 21, 21, 21, 21, 23, 21, 21, 21, 21, 21)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "portrait",
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfae22c.R
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(64, 21, 21, 21, 23, 21, 21, 21, 21, 23, 23, 21, 21, 21, 19, 21, 21)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "portrait",
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfae24d.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(64, 21, 21, 21, 21, 23, 21, 21, 21)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "landscape",
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfae24f.R
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ result <- set_titles(result, tab_titles)

colwidth <- c(64, 21, 17, 21, 19, 21, 23, 21, 21, 21, 21, 21, 19, 21, 19, 17, 19, 21, 19)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "landscape",
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfecg01.R
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ result <- set_titles(result, titles)

colwidth <- c(56, 29, 36, 39, 29, 36, 41, 29, 36, 37, 41, 41)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
nosplitin = list(cols = c(trtvar, "rrisk_header")),
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfecg01a.R
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ result <- set_titles(result, titles)

colwidth <- c(56, 29, 36, 41, 29, 36, 41, 29, 36, 41, 41, 41)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
nosplitin = list(cols = c(trtvar, "rrisk_header")),
Expand Down
16 changes: 9 additions & 7 deletions tests/testthat/source_code/tsflab01.R
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ build_result_parcat3 <- function(
### add the proper abbreviation to the tblid, and add opath path
fileid <- write_path(opath, tblidx)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "landscape",
Expand Down Expand Up @@ -595,9 +596,10 @@ result <- build_result_parcat3(PARCAT3sel = "General chemistry", tblid = tblid,

colwidth <- c(34, 27, 42, 47, 27, 42, 47, 27, 42, 49, 47, 47)

tt_to_tlgrtf(colwidths = colwidth,
result,
file = fileid,
orientation = "landscape",
nosplitin = list(cols = c(trtvar, "rrisk_header"))
)
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "landscape",
nosplitin = list(cols = c(trtvar, "rrisk_header"))
)
16 changes: 9 additions & 7 deletions tests/testthat/source_code/tsflab01a.R
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ build_result_parcat3 <- function(
### add the proper abbreviation to the tblid, and add opath path
fileid <- write_path(opath, tblidx)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "landscape",
Expand Down Expand Up @@ -721,9 +722,10 @@ result <- build_result_parcat3(PARCAT3sel = "General chemistry", tblid = tblid,

colwidth <- c(39, 29, 46, 47, 29, 46, 47, 29, 46, 48, 47, 49)

tt_to_tlgrtf(colwidths = colwidth,
result,
file = fileid,
orientation = "landscape",
nosplitin = list(cols = c(trtvar, "rrisk_header"))
)
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
orientation = "landscape",
nosplitin = list(cols = c(trtvar, "rrisk_header"))
)
2 changes: 1 addition & 1 deletion tests/testthat/source_code/tsflab02.R
Original file line number Diff line number Diff line change
Expand Up @@ -588,4 +588,4 @@ result <- build_result_parcat3(PARCAT3sel = "General chemistry", tblid = tblid,

colwidth <- c(45, 21, 21, 21, 30, 30)

tt_to_tlgrtf(colwidths = colwidth, result, file = fileid, orientation = "landscape")
tt_to_tlgrtf(colwidths = colwidth, result, file = fileid, orientation = "landscape")
3 changes: 0 additions & 3 deletions tests/testthat/source_code/tsflab02a.R
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,3 @@ result <- build_result_parcat3(
colwidth <- c(47, 21, 21, 19, 35, 35)

tt_to_tlgrtf(colwidths = colwidth, result, file = fileid, orientation = "landscape")



3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsflab02b.R
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,8 @@ build_result_parcat3 <- function(
result <- build_result_parcat3(
PARCAT3sel = "General chemistry",
tblid = tblid,
save2rtf = FALSE)
save2rtf = FALSE
)

colwidth <- c(49, 19, 19, 19, 33, 33)

Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfvit01.R
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ result <- set_titles(result, titles)

colwidth <- c(54, 29, 54, 51, 29, 54, 47, 29, 54, 49, 51, 44)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
nosplitin = list(cols = c(trtvar, "rrisk_header")),
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/source_code/tsfvit01a.R
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ result <- set_titles(result, titles)

colwidth <- c(56, 29, 60, 59, 29, 60, 57, 29, 60, 57, 57, 57)

tt_to_tlgrtf(colwidths = colwidth,
tt_to_tlgrtf(
colwidths = colwidth,
result,
file = fileid,
nosplitin = list(cols = c(trtvar, "rrisk_header")),
Expand Down
15 changes: 9 additions & 6 deletions tests/testthat/source_code/tsidem01.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ lyt <- basic_table(
.stats = c("n", "mean_sd", "median", "range", "count_fraction"),
.labels = c("n" = "N", "range" = "Min, max"),
.formats = c(P1_precision,
n = jjcsformat_xx("xx"),
"count_fraction" = jjcsformat_count_fraction),
n = jjcsformat_xx("xx"),
"count_fraction" = jjcsformat_count_fraction
),
.indent_mods = c(
"n" = 0L,
"mean_sd" = 1L,
Expand Down Expand Up @@ -265,8 +266,9 @@ lyt <- basic_table(
.stats = c("n", "mean_sd", "median", "range", "count_fraction"),
.labels = c("n" = "N", "range" = "Min, max"),
.formats = c(P2a_precision,
n = jjcsformat_xx("xx"),
"count_fraction" = jjcsformat_count_fraction),
n = jjcsformat_xx("xx"),
"count_fraction" = jjcsformat_count_fraction
),
.indent_mods = c(
"n" = 0L,
"mean_sd" = 1L,
Expand All @@ -285,8 +287,9 @@ lyt <- basic_table(
.stats = c("n", "mean_sd", "median", "range", "count_fraction"),
.labels = c("n" = "N", "range" = "Min, max"),
.formats = c(P2b_precision,
n = jjcsformat_xx("xx"),
"count_fraction" = jjcsformat_count_fraction),
n = jjcsformat_xx("xx"),
"count_fraction" = jjcsformat_count_fraction
),
.indent_mods = c(
"n" = 0L,
"mean_sd" = 1L,
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/source_code/tsids01.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ lyt <- basic_table(
summarize_num_patients(
var = "USUBJID",
.stats = "unique",
.formats = c("unique" = jjcsformat_count_fraction),
.formats = c("unique" = "xx (xx.xx%)"),
.labels = c(unique = "Screening failures")
) %>%
count_occurrences(
Expand Down
Loading