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

99 plot oc #128

Draft
wants to merge 36 commits into
base: main
Choose a base branch
from
Draft

99 plot oc #128

wants to merge 36 commits into from

Conversation

audreyyeoCH
Copy link
Collaborator

closes #99

ggsave() used to generate the snaps, just weird changes happening when svglite() used.

Copy link
Contributor

github-actions bot commented Mar 13, 2025

badge

Code Coverage Summary

Filename                 Stmts    Miss  Cover    Missing
---------------------  -------  ------  -------  -----------
R/betadiff.R                59       0  100.00%
R/boundsPostprob.R          44       0  100.00%
R/boundsPredprob.R          56       1  98.21%   83
R/dbetabinom.R              81       3  96.30%   32, 62, 136
R/oc2.R                    162     162  0.00%    93-326
R/oc3.R                    146     146  0.00%    91-308
R/ocPostprob.R             117       0  100.00%
R/ocPostprobDist.R         122       0  100.00%
R/ocPredprob.R             205       0  100.00%
R/ocPredprobDist.R         257       5  98.05%   363-367
R/ocRctPostprobDist.R      166       0  100.00%
R/ocRctPredprobDist.R      302       0  100.00%
R/plotBeta.R                71       5  92.96%   115-119
R/plotBounds.R              52      52  0.00%    33-90
R/plotDecision.R            79      79  0.00%    16-136
R/plotOc.R                  52       2  96.15%   96-97
R/postprob.R                34       1  97.06%   106
R/postprobDist.R            77       1  98.70%   204
R/predprob.R                24       0  100.00%
R/predprobDist.R           140       1  99.29%   269
R/runShinyPhase1b.R          4       4  0.00%    8-13
R/sumbetadiff.R             63      63  0.00%    24-101
R/sumTable.R                20      20  0.00%    25-48
TOTAL                     2333     545  76.64%

Diff against main

Filename                 Stmts    Miss  Cover
---------------------  -------  ------  -------
R/ocPostprob.R               0      -6  +5.13%
R/ocPredprob.R               0      -6  +2.93%
R/ocRctPostprobDist.R        0      -6  +3.61%
R/ocRctPredprobDist.R        0     -60  +19.87%
R/plotOc.R                 +31     -19  +96.15%
TOTAL                      +31     -97  +4.53%

Results for commit: 0ed2340

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

Copy link
Contributor

github-actions bot commented Mar 13, 2025

Unit Tests Summary

    1 files     17 suites   7m 16s ⏱️
  129 tests   128 ✅ 1 💤 0 ❌
1 288 runs  1 285 ✅ 3 💤 0 ❌

Results for commit 0ed2340.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Mar 13, 2025

Unit Test Performance Difference

Test Suite $Status$ Time on main $±Time$ $±Tests$ $±Skipped$ $±Failures$ $±Errors$
ocPredprobDist 💔 $165.28$ $+5.08$ $0$ $0$ $0$ $0$
ocRctPredprobDist 💔 $26.67$ $+1.28$ $0$ $0$ $0$ $0$
plotOc 💔 $101.84$ $+104.05$ $+6$ $+2$ $0$ $0$
Additional test case details
Test Suite $Status$ Time on main $±Time$ Test Case
ocPredprobDist 💔 $39.16$ $+1.05$ ocPredprobDist_gives_correct_result_and_list_when_relativeDelta_FALSE
ocPredprobDist 💔 $23.12$ $+1.07$ ocPredprobDist_gives_higher_PrEfficacy_with_more_efficacy_looks
ocPredprobDist 💔 $58.33$ $+1.98$ ocPredprobDist_gives_higher_PrFutility_with_more_futility_looks
plotOc 💔 $53.48$ $+1.33$ h_get_dataframe_oc_gives_correct_results_for_ocPredprobDist_when_relativeDelta_FALSE
plotOc 💔 $46.10$ $+1.09$ h_get_dataframe_oc_gives_correct_results_for_ocPredprobDist_when_relativeDelta_TRUE
plotOc 👶 $+0.30$ plotOc_gives_expected_results_for_ocPostprob_and_ocPredprob_
plotOc 👶 $+101.18$ plotOc_gives_expected_results_for_ocPredprobDist_with_different_relativeDelta_status

Results for commit ab9f472

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@danielinteractive danielinteractive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost there, thanks @audreyyeoCH

@audreyyeoCH
Copy link
Collaborator Author

Adding here for later ref, current RCMD issue for pipe not found even though magrittr and dplyr imported from DESCRIPTION file. Ref'ed solution not current solution but closest.

@audreyyeoCH
Copy link
Collaborator Author

audreyyeoCH commented Mar 17, 2025

Hi @danielinteractive would you mind checking out this persisted R CMD check error ? The log keeps saying :

Error in df %>% dplyr::group_by(deci
sion, look) %>% dplyr::summarise(prop = sum(length(decision))/nrow(df)) %>% :
could not find function "%>%"

I've changed the pipe to baseR's |>, something seems off, the tests are also failing on a local R CMD check, another thing to deal with even though the tests look like they passed here.

Here's the perma link

Edit also this error related to a helper function that isn't related to this PR, it passed last time

@danielinteractive
Copy link
Collaborator

Hi @audreyyeoCH , I just checked the check log and it failed due to a warning:

Undocumented arguments in Rd file 'plotOc.Rd': ‘sample_size’

Otherwise it is actually ok.

That said, it would be good if you can also address the notes that are reported in there, maybe in a separate PR.

@audreyyeoCH
Copy link
Collaborator Author

Hi @audreyyeoCH , I just checked the check log and it failed due to a warning:

Undocumented arguments in Rd file 'plotOc.Rd': ‘sample_size’

Otherwise it is actually ok.

That said, it would be good if you can also address the notes that are reported in there, maybe in a separate PR.

thanks for looking @danielinteractive

I think I will open another PR, as I need to use Design doc again

@audreyyeoCH audreyyeoCH marked this pull request as draft March 18, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

99_plotOC.R
2 participants