-
Notifications
You must be signed in to change notification settings - Fork 50
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
16 additions
and
1 deletion.
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
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,11 @@ | ||
context("matrix_form works") | ||
|
||
test_that("matrix_form works with indent_rownames = FALSE", { | ||
# Discovered thanks to more stringent indentation checks. See #844 for when it | ||
# surfaced. Cause: make_row_df does not update mf_rinfo indentation if indent_rownames = FALSE | ||
lyt <- basic_table() %>% split_rows_by("ARM") %>% analyze("AGE") | ||
tbl <- build_table(lyt, ex_adsl) | ||
mf <- matrix_form(tbl, indent_rownames = FALSE) | ||
expect_equal(mf_rinfo(mf)$indent, rep(0, nrow(tbl))) | ||
expect_silent(out <- toString(mf)) | ||
}) | ||