Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

221 new ard ard for tables 32 and 33 #241

Open
wants to merge 59 commits into
base: main
Choose a base branch
from

Conversation

aassuied-ps
Copy link
Collaborator

Pull Request

Closes #221

@aassuied-ps aassuied-ps linked an issue Sep 4, 2024 that may be closed by this pull request
@aassuied-ps aassuied-ps added the ARD label Sep 4, 2024
Copy link
Contributor

github-actions bot commented Sep 4, 2024

badge

Code Coverage Summary

Filename            Stmts    Miss  Cover    Missing
----------------  -------  ------  -------  ---------
R/fda-fig_01.R         75       0  100.00%
R/fda-fig_02.R         75       0  100.00%
R/fda-fig_03.R        107       0  100.00%
R/fda-fig_14.R        115       0  100.00%
R/fda-table_02.R      166       0  100.00%
R/fda-table_03.R       35       0  100.00%
R/fda-table_04.R       63       0  100.00%
R/fda-table_05.R       61       0  100.00%
R/fda-table_06.R       76       0  100.00%
R/fda-table_07.R       35       0  100.00%
R/fda-table_08.R       46       0  100.00%
R/fda-table_09.R      329       0  100.00%
R/fda-table_10.R       26       0  100.00%
R/fda-table_11.R       42       0  100.00%
R/fda-table_12.R       40       0  100.00%
R/fda-table_13.R       20       0  100.00%
R/fda-table_14.R       27       0  100.00%
R/fda-table_15.R       32       0  100.00%
R/fda-table_16.R       32       0  100.00%
R/fda-table_17.R       32       0  100.00%
R/fda-table_18.R       32       0  100.00%
R/fda-table_20.R       71       0  100.00%
R/fda-table_21.R       78       0  100.00%
R/fda-table_22.R       77       0  100.00%
R/fda-table_32.R       83       0  100.00%
R/fda-table_33.R       88       0  100.00%
R/fda-table_34.R       41       0  100.00%
R/fda-table_35.R       23       0  100.00%
R/fda-table_36.R       30       0  100.00%
R/fda-table_38.R       39       0  100.00%
R/utils.R              28       0  100.00%
TOTAL                2024       0  100.00%

Diff against main

Filename            Stmts    Miss  Cover
----------------  -------  ------  --------
R/fda-table_32.R      -11       0  +100.00%
R/fda-table_33.R       -7       0  +100.00%
TOTAL                 -18       0  +100.00%

Results for commit: 96524b2

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Unit Tests Summary

  1 files   30 suites   1m 14s ⏱️
130 tests 130 ✅   0 💤 0 ❌
484 runs  358 ✅ 126 💤 0 ❌

Results for commit 96524b2.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Unit Test Performance Difference

Additional test case details
Test Suite $Status$ Time on main $±Time$ Test Case
fda-table_32 👶 $+1.05$ Table_32_generation_missing_values_and_ADSL
fda-table_32 💔 $0.24$ $+1.45$ Table_32_generation_works_with_custom_values
fda-table_32 💔 $0.25$ $+1.05$ Table_32_generation_works_with_default_values
fda-table_32 💀 $1.46$ $-1.46$ Table_32_gtsum_generation_missing_values_and_ADSL
fda-table_32 💀 $1.45$ $-1.45$ Table_32_gtsum_generation_works_with_custom_values
fda-table_32 💀 $1.03$ $-1.03$ Table_32_gtsum_generation_works_with_default_values
fda-table_33 👶 $+1.04$ Table_33_generation_missing_values_and_ADSL
fda-table_33 💔 $0.38$ $+1.35$ Table_33_generation_works_with_custom_values
fda-table_33 💀 $1.29$ $-1.29$ Table_33_gtsum_generation_missing_values_and_ADSL
fda-table_33 💀 $1.28$ $-1.28$ Table_33_gtsum_generation_works_with_custom_values
fda-table_33 💀 $0.98$ $-0.98$ Table_33_gtsum_generation_works_with_default_values

Results for commit 98e901e

♻️ This comment has been updated with latest results.

@aassuied-ps
Copy link
Collaborator Author

aassuied-ps commented Nov 19, 2024

The error in tests is the following:

Error: `everything()` must be used within a *selecting* function.

It comes from gtsummary::modify_footnote():

# Example 2 ----------------------------------
# updating headers, remove all footnotes, add spanning header
tbl |>
  modify_header(all_stat_cols() ~ "**{level}**, N = {n} ({style_percent(p)}%)") |>
  modify_footnote(everything() ~ NA) |>
  modify_spanning_header(all_stat_cols() ~ "**Treatment Received**")

The function is working well though. I don't know what to do to avoid this specific message with testthat.

@edelarua
Copy link
Collaborator

The error in tests is the following:

Error: `everything()` must be used within a *selecting* function.

The function is working well though. I don't know what to do to avoid this specific message with testthat.

Hi @aassuied-ps,

I think we should leave the extra formatting as default as we can, i.e. just leave the footnotes as is. The good thing about using gtsummary is that it's easy for users to modify tables in post-processing, so they can choose to replace the default footnotes if needed.

@aassuied-ps
Copy link
Collaborator Author

Hi @edelarua, thank you very much. It seems good now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New ARD] ARD for tables 32 and 33
2 participants