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

Pre-release activities #240

Merged
merged 61 commits into from
Jan 13, 2024
Merged

Pre-release activities #240

merged 61 commits into from
Jan 13, 2024

Conversation

kartikeyakirar
Copy link
Contributor

@kartikeyakirar kartikeyakirar commented Dec 27, 2023

part of insightsengineering/nestdevs-tasks#48

  • Review and update:
    - README.md (check example code)
    - NEWS.md

  • Run urlchecker::url_check() to identify broken links and fix

  • Review functions:
    - @example tag, make sure it runs, fix if otherwise
    - Make sure functions has @return tag to document the return value
    - no \dontrun tag, replace with if(interactive()) if needed

  • Sanity check of all vignettes, make sure there is no typo, no wrong format, etc.

  • Run R CMD check --as-cran make sure everything pass

  • Package Title is not duplicated in Package Description in DESCRIPTION file (e.g. this happens in teal.slice currently)

  • All package names in Title and Description fields of DESCRIPTION file are quoted with '

  • You have checked the Package Release Template https://github.com/insightsengineering/teal.reporter/pull/205/files

  • Make sure there are no ::: in examples

  • Make sure all teal.* mentions are lower-cased and quoted

  • Make Sure inst/WORDLIST is minimalized

  • Make sure non-exported functions do not have examples

  • Make sure each link to our documentation hosted with pkgdown on github pages do not have /main/ in the address but it has /latest/ instead, so we always expose the documentation of the latest release and not what's currently on main branch but not yet released

  • Consistent usage of <xyz> object/datasets (if any).

  • switch from title case into sentence case for title and description of functions.

  • remove old rd syntax

@kartikeyakirar kartikeyakirar marked this pull request as draft December 27, 2023 11:39
Copy link
Contributor

github-actions bot commented Dec 27, 2023

badge

Code Coverage Summary

Filename                         Stmts    Miss  Cover    Missing
-----------------------------  -------  ------  -------  ------------------
R/cdisc_data.R                       1       1  0.00%    35
R/default_cdisc_join_keys.R         11      11  0.00%    17-35
R/deprecated.R                      57      57  0.00%    17-341
R/dummy_function.R                   2       2  0.00%    14-15
R/formatters_var_labels.R           36      11  69.44%   59, 68-79
R/join_key.R                        38       0  100.00%
R/join_keys-c.R                     12       0  100.00%
R/join_keys-extract.R              128       0  100.00%
R/join_keys-names.R                 15       0  100.00%
R/join_keys-parents.R               30       0  100.00%
R/join_keys-print.R                 45       0  100.00%
R/join_keys-utils.R                 73       3  95.89%   33-36
R/join_keys.R                       21       0  100.00%
R/teal_data-class.R                 25       1  96.00%   70
R/teal_data-datanames.R             10       0  100.00%
R/teal_data-get_code.R              15       1  93.33%   57
R/teal_data-show.R                   4       4  0.00%    13-18
R/teal_data.R                       22       9  59.09%   28, 37-43, 46
R/testhat-helpers.R                 26       0  100.00%
R/topological_sort.R                32       0  100.00%
R/utils-get_code_dependency.R      110       1  99.09%   43
R/verify.R                          42      11  73.81%   63, 93-97, 100-104
R/zzz.R                             10      10  0.00%    4-16
TOTAL                              765     122  84.05%

Diff against main

Filename                     Stmts    Miss  Cover
-------------------------  -------  ------  --------
R/deprecated.R                 -12     -12  +100.00%
R/dummy_function.R              -3      -3  +100.00%
R/formatters_var_labels.R      -15     -40  +69.44%
TOTAL                          -30     -55  +6.32%

Results for commit: 229d51b

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

Copy link
Contributor

github-actions bot commented Dec 27, 2023

Unit Tests Summary

  1 files   14 suites   1s ⏱️
175 tests 173 ✅ 2 💤 0 ❌
242 runs  240 ✅ 2 💤 0 ❌

Results for commit 229d51b.

♻️ This comment has been updated with latest results.

@kartikeyakirar kartikeyakirar marked this pull request as ready for review December 28, 2023 11:20
Copy link
Contributor

github-actions bot commented Dec 28, 2023

Unit Test Performance Difference

Test Suite $Status$ Time on main $±Time$ $±Tests$ $±Skipped$ $±Failures$ $±Errors$
formatters_var_labels 👶 $+0.04$ $+7$ $0$ $0$ $0$
Additional test case details
Test Suite $Status$ Time on main $±Time$ Test Case
formatters_var_labels 👶 $+0.01$ col_labels_accepts_an_empty_data.frame
formatters_var_labels 👶 $+0.00$ col_labels_returns_a_named_vector_of_NA_when_fill_FALSE_and_there_are_no_labels
formatters_var_labels 👶 $+0.00$ col_labels_returns_a_vector_of_column_names_when_fill_TRUE_and_there_are_no_labels
formatters_var_labels 👶 $+0.00$ col_labels_returns_empty_character_vector_for_a_data.frame_with_no_columns
formatters_var_labels 👶 $+0.00$ col_relabel_correctly_changes_column_labels_in_a_data_frame
formatters_var_labels 👶 $+0.01$ col_relabel_returns_the_original_data.frame_when_no_new_labels_are_specified
formatters_var_labels 👶 $+0.01$ col_relabel_throws_an_error_for_non_existent_columns
join_keys 💀 $0.01$ $-0.01$ join_keys_doesn_t_accept_other_objects_than_teal_data_TealData_and_join_key
join_keys 👶 $+0.01$ join_keys_only_accepts_teal_data_and_join_key_arguments

Results for commit b9c2393

♻️ This comment has been updated with latest results.

R/deprecated.R Outdated Show resolved Hide resolved
R/formatters_var_labels.R Outdated Show resolved Hide resolved
R/formatters_var_labels.R Outdated Show resolved Hide resolved
R/formatters_var_labels.R Outdated Show resolved Hide resolved
R/formatters_var_labels.R Outdated Show resolved Hide resolved
R/formatters_var_labels.R Outdated Show resolved Hide resolved
R/formatters_var_labels.R Outdated Show resolved Hide resolved
R/join_keys-names.R Outdated Show resolved Hide resolved
R/teal_data-get_code.R Show resolved Hide resolved
R/verify.R Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
kartikeyakirar and others added 12 commits January 2, 2024 21:46
Co-authored-by: Aleksander Chlebowski <[email protected]>
Signed-off-by: kartikeya kirar <[email protected]>
Co-authored-by: Aleksander Chlebowski <[email protected]>
Signed-off-by: kartikeya kirar <[email protected]>
Co-authored-by: Aleksander Chlebowski <[email protected]>
Signed-off-by: kartikeya kirar <[email protected]>
Co-authored-by: Aleksander Chlebowski <[email protected]>
Signed-off-by: kartikeya kirar <[email protected]>
Co-authored-by: Aleksander Chlebowski <[email protected]>
Signed-off-by: kartikeya kirar <[email protected]>
Co-authored-by: Aleksander Chlebowski <[email protected]>
Signed-off-by: kartikeya kirar <[email protected]>
Co-authored-by: Aleksander Chlebowski <[email protected]>
Signed-off-by: kartikeya kirar <[email protected]>
kartikeyakirar and others added 3 commits January 11, 2024 14:47
Merge branch 'main' into pre-release-cleanup@main

# Conflicts:
#	R/utils.R
#	man/check_simple_name.Rd
@pawelru
Copy link
Contributor

pawelru commented Jan 11, 2024

Shall we also update installation description similarly to what you did for teal?

@kartikeyakirar
Copy link
Contributor Author

@pawelru
Copy link
Contributor

pawelru commented Jan 11, 2024

That's right. I was looking at https://github.com/insightsengineering/teal.data/tree/pre-release-cleanup%40main where I cannot see the changes they are there if I open https://github.com/insightsengineering/teal.data/blob/pre-release-cleanup%40main/README.md. That's strange.
Anyway, this is done 👍

kartikeyakirar and others added 6 commits January 11, 2024 18:25
# Pull Request

<!--- Replace `#nnn` with your issue link for reference. -->

### Changes description

Suggestions from talk with @vedhav

---------

Signed-off-by: André Veríssimo <[email protected]>
Co-authored-by: kartikeya kirar <[email protected]>
R/default_cdisc_join_keys.R Outdated Show resolved Hide resolved
R/dummy_function.R Outdated Show resolved Hide resolved
R/join_keys-names.R Outdated Show resolved Hide resolved
R/join_keys-parents.R Outdated Show resolved Hide resolved
R/join_keys-utils.R Outdated Show resolved Hide resolved
R/utils-get_code_dependency.R Outdated Show resolved Hide resolved
R/utils-get_code_dependency.R Outdated Show resolved Hide resolved
R/utils-get_code_dependency.R Outdated Show resolved Hide resolved
vignettes/teal-data.Rmd Outdated Show resolved Hide resolved
vignettes/join-keys.Rmd Outdated Show resolved Hide resolved
R/join_keys-utils.R Outdated Show resolved Hide resolved
R/join_keys-utils.R Outdated Show resolved Hide resolved
@kartikeyakirar kartikeyakirar enabled auto-merge (squash) January 13, 2024 03:23
@kartikeyakirar kartikeyakirar merged commit 88786c2 into main Jan 13, 2024
25 checks passed
@kartikeyakirar kartikeyakirar deleted the pre-release-cleanup@main branch January 13, 2024 03:23
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.

7 participants