Genentech / psborrow2

psborrow2: Bayesian Dynamic Borrowing Simulation Study and Analysis
https://genentech.github.io/psborrow2/
Other
16 stars 2 forks source link

Tweaks for cran #278

Closed mattsecrest closed 5 months ago

mattsecrest commented 5 months ago

No response form Uwe yet let's see if this fixes things. cran-submit-2.pdf

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.54%. Comparing base (4e6b0b1) to head (b7b7231).

:exclamation: Current head b7b7231 differs from pull request most recent head 40fb2ce. Consider uploading reports for the commit 40fb2ce to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #278 +/- ## ========================================== + Coverage 79.41% 79.54% +0.12% ========================================== Files 60 60 Lines 1613 1613 ========================================== + Hits 1281 1283 +2 + Misses 332 330 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mattsecrest commented 5 months ago

Please add \value to .Rd files regarding exported methods and explain the functions results in the documentation. Please write about the structure of the output (class) and also what the output means. (If a function does not return a value, please document that too, e.g. \value{No return value, called for side effects} or similar) Missing Rd-tags:

mattsecrest commented 5 months ago

You have examples for unexported functions. Please either omit these examples or export these functions. Examples for unexported function

mattsecrest commented 5 months ago

"Using foo:::f instead of foo::f allows access to unexported objects. This is generally not recommended, as the semantics of unexported objects may be changed by the package author in routine maintenance."

mattsecrest commented 5 months ago

\dontrun{} should only be used if the example really cannot be executed (e.g. because of missing additional software, missing API keys, ...) by the user. That's why wrapping examples in \dontrun{} adds the comment ("# Not run:") as a warning for the user. Does not seem necessary. Please replace \dontrun with \donttest. Please unwrap the examples if they are executable in < 5 sec, or replace dontrun{} with \donttest{}.

mattsecrest commented 5 months ago

We still see: Examples for unexported function

Please either omit these examples or export these functions.

mattsecrest commented 5 months ago

Some code lines in examples are commented out. Please never do that. Ideally find toy examples that can be regularly executed and checked. Lengthy examples (> 5 sec), can be wrapped in \donttest{}. Examples in comments in:

mattsecrest commented 5 months ago

Per Daniel Sjoberg's suggestions just wrapping in @noRd and pushing back on prior_gamma, prior_normal, and treatment_details, which do not have commented out examples.

mattsecrest commented 5 months ago

@danielinteractive @gravesti the package as-is was accepted to CRAN. Would someone be able to approve so I can move aditional tweaks to a new branch?