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

v2.0 add unit-tests for tbl_survfit for add_n, add_nevent, add_p #1753

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

Conversation

zdz2101
Copy link
Collaborator

@zdz2101 zdz2101 commented Jun 20, 2024

What changes are proposed in this pull request?

If there is an GitHub issue associated with this pull request, please provide link.


Reviewer Checklist (if item does not apply, mark is as complete)

  • Ensure all package dependencies are installed by running renv::install()
  • PR branch has pulled the most recent updates from master branch. Ensure the pull request branch and your local version match and both have the latest updates from the master branch.
  • If an update was made to tbl_summary(), was the same change implemented for tbl_svysummary()?
  • If a new function was added, function included in _pkgdown.yml
  • If a bug was fixed, a unit test was added for the bug check
  • Run pkgdown::build_site(). Check the R console for errors, and review the rendered website.
  • Code coverage is suitable for any new functions/features. Review coverage with withr::with_envvar(new = c("NOT_CRAN" = "true"), covr::report()). Begin in a fresh R session without any packages loaded.
  • R CMD Check runs without errors, warnings, and notes
  • usethis::use_spell_check() runs with no spelling errors in documentation

When the branch is ready to be merged into master:

  • Update NEWS.md with the changes from this pull request under the heading "# gtsummary (development version)". If there is an issue associated with the pull request, reference it in parentheses at the end update (see NEWS.md for examples).
  • Increment the version number using usethis::use_version(which = "dev")
  • Run codemetar::write_codemeta()
  • Run usethis::use_spell_check() again
  • Approve Pull Request
  • Merge the PR. Please use "Squash and merge".

edelarua and others added 24 commits June 11, 2024 06:48
* Add tests

* Add unit tests for as_tibble

* Remove comment

* Update tbl_stack.R

* Use base R pipe

* Add test for column grouping

* A bit of clean up

* Comment code

* Remove some snapshot tests

* Add test for as.data.frame

---------

Co-authored-by: Daniel Sjoberg <[email protected]>
* progress

* Update import-standalone-stringr.R
…()` (#1725)

* add test for add_n.tbl_uvregression()

* all tests added and styler

* forgot a skip_if_not

* adopt feedback

* adopt feedback
* in progress

* in progress

* stringr updates

* Update add_q.R
* adding kabel extra output

* adding indent
* in progress

* progress

* progress
* rename some functions

* Update _pkgdown.yml
* Add tests for as_gt

* Fix

* Fix

* Fix

* Test

* Test

* Rearrange existing

* Add tests for as_gt

* Update footnotes test

* Simplify interpreter test

* Add footnotes test

* Clean up

* Add test for bold/italics

* Add test for missing symbols

* Add test for column merging

* Simplify tests

* Add test for missing values

* Add tests for formatting functions

---------

Co-authored-by: Daniel Sjoberg <[email protected]>
@zdz2101 zdz2101 marked this pull request as ready for review June 21, 2024 21:31
@ddsjoberg
Copy link
Owner

@zdz2101 is this ready for review?

@zdz2101 zdz2101 requested a review from ddsjoberg June 25, 2024 13:52
@zdz2101
Copy link
Collaborator Author

zdz2101 commented Jun 25, 2024

@zdz2101 is this ready for review?

Ahh yes I forgot to assign you, this is ready!

@ddsjoberg
Copy link
Owner

Hey! I am going to hold off reviewing these updates until we get the tests for tbl_survfit() merged. If it happens we have to make changes to the primary function, that may cause downstream issues in these fns.

@ddsjoberg ddsjoberg changed the base branch from v2.0 to main June 29, 2024 15:38
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.

None yet

3 participants