-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfixes and improvements to
summary_rows()
(#175)
* Add comments * Simplify assignment * Modify comments * Simplify assignment * Add `select()` statement * Modify object names * Remove `select()` statement * Refactor function * Make correction to conditional stmt * Equate `groups == FALSE` to NULL * Refactor and allow for specialized grand summary grp * Append grand summary rows to bottom of body * Add CSS class for the first grand summary row * Update tests to reflect new behavior * Include a `context` argument * Normalize `groups` and stop early if necessary * Modify special label used for grand summary * Use `rlang::as_closure()` instead of `rlang::as_function()` * Refactor statements that produce summary labels * Stop function if summary labels are not unique * Modify call to `create_summary_dfs()` * Modify call to `create_summary_dfs()` * Refactor the `extract_summary()` function * Modify roxygen documentation * Modify default value of `groups` arg * Update help file using roxygen * Stop function if names are not given for bare fcns * Modify label used * Remove background color for stub * Add CSS rule for grand summary rows * Apply Sass `font-color` function to summary rows * Add Sass rule for grand summary row color * Add options and defaults for grand summary rows * Add the `cells_grand_summary()` function * Modify default options for `summary_rows()` * Modify the `tab_options()` function * Add util functions to support grand summaries * Update help files using roxygen * Add to NAMESPACE * Modify tests to reflect new behavior * Allow for stub creation when necessary * Add several tests for `summary_rows()` * Modify roxygen @param statement * Modify roxygen @param statement * Update help file using roxygen * Modify roxygen description text * Modify roxygen description text * Update help file using roxygen * Modify assignment to df * Use `resolve_vars()` to obtain colnames * Obtain and store labels in `summary_rows()` * Revise `*.cells_summary` to use multiple expr types * Revise `*.cells_grand_summary` to use multiple expr types * Modify several testthat tests * Update help file using roxygen * Simplify statements * Modify roxygen documentation * Update help file using roxygen * Get `labels` from `summary_attrs` * Assign identifier string to local variable * Add the `assert_rowgroups()` function * Add calls the `assert_rowgroups()` fcn * Remove statements to obtain row labels * Replace identifier string with local variable * Remove `subset()` statements * Refactor `lapply()` statements * Add tests for `cells_summary()` * Add tests for `cells_grand_summary()` * Add tests for `tab_footnote()` * Use the internal `is_false()` fcn * Modify the `is_false()` call * Add several testthat tests * Add tests for the `tab_style()` fcn * Refactor some `set_style.*()` fcns * Add tests for the `tab_options()` fcn * Add several testthat tests * Refactor the adding of summary location rows * Add the `tidy_sub()` util function * Add the `context_missing_text()` util function * Refactor the `cols_merge_range()` function * Use the `context_dash_mark()` function * Use the `context_missing_text()` function * Modify the `perform_col_merge()` fcn call * Make corrections to several testthat tests * Ensure sep is an empty string * Remove unneeded conditional statement * Create `grand_summary_col` variable * Modify position of check for labels (earlier) * Clean up logic of checks for groups * Use `lapply()` statement in refactor * Do not hardcode HTML formatter * Use `grand_summary_col` variable
- Loading branch information
1 parent
9aeb069
commit 85a9e74
Showing
33 changed files
with
2,127 additions
and
461 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
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
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
Oops, something went wrong.