Skip to content

Commit edc0826

Browse files
authored
Merge pull request #136 from pharmaverse/supp-messaging
Enhance user experience and package feedback for various functions in R/supp and R/checks
2 parents 4905bfa + f4a4502 commit edc0826

16 files changed

Lines changed: 608 additions & 238 deletions

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ Encoding: UTF-8
4646
Language: en-US
4747
LazyData: true
4848
Roxygen: list(markdown = TRUE)
49-
RoxygenNote: 7.3.2
49+
RoxygenNote: 7.3.3

NEWS.md

Lines changed: 97 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,110 @@
1+
---
2+
editor_options:
3+
markdown:
4+
wrap: 72
5+
---
6+
17
# metatools 0.3.0
2-
* Bugfix issue in `create_var_from_codelist()` where supplied codelist contains negative numeric values. (#111)
8+
9+
- Enhancement: `verbose` Adds a verbose parameter to
10+
`build_from_derived()`, `set_variable_labels()`, and `build_qnam()`
11+
to allow users to suppress informational messages and warnings
12+
during execution. Permissible values "message", "warn", "silent".
13+
14+
- Enhancement: `verbose` parameter also added to `check_ct_col` and
15+
`check_ct_data`. Warnings cannot be suppressed for these functions
16+
to prevent unnoticed data quality issues. Permissible values
17+
"message", "warn". [#136](https://github.com/pharmaverse/metatools/pull/136)
18+
19+
- Enhancement: `add_labels()` now prints out variables that do not
20+
exist in the dataset.
21+
[#113](https://github.com/pharmaverse/metatools/pull/113)
22+
23+
- Bugfix issue where `create_var_from_codelist()` would throw an error
24+
when `strict=TRUE` and `input_var` was numeric.
25+
[#111](https://github.com/pharmaverse/metatools/pull/108)
26+
27+
- Bugfix issue in `create_var_from_codelist()` where supplied codelist
28+
contains negative numeric
29+
values.[#102](https://github.com/pharmaverse/metatools/pull/102)
30+
31+
- Bugfix logic for detecting variable mismatches in
32+
`set_variable_labels()`.
33+
[#112](https://github.com/pharmaverse/metatools/pull/112)
34+
35+
- Bugfix `combine_supp_join()` no longer throws an error when rows
36+
exist in the supp that do not correspond to a record in the core
37+
dataset. [#115](https://github.com/pharmaverse/metatools/pull/115)
38+
39+
- Various updates and refinements to documentation. - GitHub workflows
40+
for package styling and spelling enabled.
41+
[#128](https://github.com/pharmaverse/metatools/pull/128)
342

443
# metatools 0.2.0
5-
* Functions now require a subsetted metacore object to be used i.e., created via `metacore::select_dataset()`.
6-
* `create_cat_var()` now allows the new variable to be create using the `decode` part of the codelist as a label.(#82)
7-
* `create_var_from_codelist()` now allows the user to specify a codelist to use to create the new variables. (#83)
8-
* `check_variables()` now provides a `strict` option that issues warnings rather than errors when `FALSE`. (#86)
9-
* `combine_supp()` now adds labels from the "QLABEL" (#71)
10-
* `combine_supp()` no longer creates an "IDVARVAL" column (#78)
11-
* Improved error reporting for `create_cat_var`, `create_var_from_codelist`, and `check_variables`.
12-
* The `dataset_name` argument has been deprecated in various functions.
13-
* The `make_lone_dataset` function has been deprecated.
44+
45+
- Functions now require a subsetted metacore object to be used i.e.,
46+
created via `metacore::select_dataset()`.
47+
- `create_cat_var()` now allows the new variable to be create using
48+
the `decode` part of the codelist as a label.(#82)
49+
- `create_var_from_codelist()` now allows the user to specify a
50+
codelist to use to create the new variables. (#83)
51+
- `check_variables()` now provides a `strict` option that issues
52+
warnings rather than errors when `FALSE`. (#86)
53+
- `combine_supp()` now adds labels from the "QLABEL" (#71)
54+
- `combine_supp()` no longer creates an "IDVARVAL" column (#78)
55+
- Improved error reporting for `create_cat_var`,
56+
`create_var_from_codelist`, and `check_variables`.
57+
- The `dataset_name` argument has been deprecated in various
58+
functions.
59+
- The `make_lone_dataset` function has been deprecated.
1460

1561
# metatools 0.1.6
16-
* Breaking change: `combine_supp()` requires that the QNAM columns are not in the source dataset (#64)
17-
* Breaking change: `build_from_derived()` no longer requires all datasets with predecessors, but can run on a single dataset or multiple. It will also now accept unnamed datasets.
18-
* `combine_supp()` now allows multiple `QNAM` values to go to the same `IDVAR` (#63)
19-
* Allow supp data to be zero-row with `combine_supp()` (#45)
20-
* Enhance `check_ct_data()` so that `na_acceptable` can now accept a vector of variables. Also add new argument `omit_vars` to control if any variables should be skipped when doing controlled terminology checks (#57)
21-
* Add `check_unique_keys()` to check the uniqueness of records in the dataset by variable keys (#52)
22-
* Correct the description of `build_from_derived()` predecessor_only parameter
62+
63+
- Breaking change: `combine_supp()` requires that the QNAM columns are
64+
not in the source dataset (#64)
65+
- Breaking change: `build_from_derived()` no longer requires all
66+
datasets with predecessors, but can run on a single dataset or
67+
multiple. It will also now accept unnamed datasets.
68+
- `combine_supp()` now allows multiple `QNAM` values to go to the same
69+
`IDVAR` (#63)
70+
- Allow supp data to be zero-row with `combine_supp()` (#45)
71+
- Enhance `check_ct_data()` so that `na_acceptable` can now accept a
72+
vector of variables. Also add new argument `omit_vars` to control if
73+
any variables should be skipped when doing controlled terminology
74+
checks (#57)
75+
- Add `check_unique_keys()` to check the uniqueness of records in the
76+
dataset by variable keys (#52)
77+
- Correct the description of `build_from_derived()` predecessor_only
78+
parameter
2379

2480
# metatools 0.1.4
25-
* correct bug with `combine_supp()` when the data and the supp have white space. Now it will be trimmed before attempting to merge
26-
* Updates made to work with the newest version of dplyr
81+
82+
- correct bug with `combine_supp()` when the data and the supp have
83+
white space. Now it will be trimmed before attempting to merge\
84+
- Updates made to work with the newest version of dplyr
2785

2886
# metatools 0.1.3
29-
* correct bug with `build_from_derived()` that prevented multiple from being combined
30-
* removed library calls from tests
31-
* remove `floating_pt_correction` from `combine_supp()` as it is best to never change the type of the main dataset
32-
* Add a message to `drop_unspec_vars` to explain which variables are dropped
33-
* Correct bug in `order_cols`, so it will still work when not all columns are present
87+
88+
- correct bug with `build_from_derived()` that prevented multiple from
89+
being combined
90+
- removed library calls from tests
91+
- remove `floating_pt_correction` from `combine_supp()` as it is best
92+
to never change the type of the main dataset
93+
- Add a message to `drop_unspec_vars` to explain which variables are
94+
dropped
95+
- Correct bug in `order_cols`, so it will still work when not all
96+
columns are present
3497

3598
# metatools 0.1.2
36-
* correct bug with `combine_supp()` when the data and the supp have different classes for the IDVARVAL
37-
* add error to `combine_supp()` to report when not all the rows in the supp have merged
38-
* add `floating_pt_correction` argument to `combine_supp()` used for when there are floating point errors with `IDVARVAL`
99+
100+
- correct bug with `combine_supp()` when the data and the supp have
101+
different classes for the IDVARVAL
102+
- add error to `combine_supp()` to report when not all the rows in the
103+
supp have merged
104+
- add `floating_pt_correction` argument to `combine_supp()` used for
105+
when there are floating point errors with `IDVARVAL`
39106

40107
# metatools 0.1.1
41-
* Based on tester feedback, remove any row in supplemental qualifiers that are empty and rearranged the columns
108+
109+
- Based on tester feedback, remove any row in supplemental qualifiers
110+
that are empty and rearranged the columns

0 commit comments

Comments
 (0)