Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Dec 5, 2024
1 parent d21214f commit dad141b
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/util.R
Original file line number Diff line number Diff line change
Expand Up @@ -619,3 +619,8 @@ build_table_header <- function(anl,
get_version_label_output <- function() {
NULL
}


strip_NA <- function(input) {
return(input[which(input != "NA")])
}
8 changes: 8 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,11 @@ yaml
yml
yyyy
ael
AVAL
eg
EG
lineplot
mng
PARAM
PARAMCD
thomas
50 changes: 50 additions & 0 deletions tests/testthat/test-output-table-format.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
test_that("save an autoslider output", {
output <- t_dm_slide(adsl = testdata$adsl) %>%
decorate(title = "test title", footnote = "") %>%
list()

outfile = paste0(tempdir(), "/output.pptx")

Check warning on line 6 in tests/testthat/test-output-table-format.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=tests/testthat/test-output-table-format.R,line=6,col=11,[assignment_linter] Use <-, not =, for assignment.
testthat::expect_no_error(
generate_slides(
output,
outfile = outfile,
table_format = autoslider_format
)
)

testthat::expect_no_error(
generate_slides(
output,
outfile = outfile,
template = outfile,
table_format = blue_format
)
)

testthat::expect_no_error(
generate_slides(
output,
outfile = outfile,
template = outfile,
table_format = orange_format
)
)

testthat::expect_no_error(
generate_slides(
output,
outfile = outfile,
template = outfile,
table_format = red_format
)
)

testthat::expect_no_error(
generate_slides(
output,
outfile = outfile,
template = outfile,
table_format = purple_format
)
)
})

0 comments on commit dad141b

Please sign in to comment.