Wed Jun 7 12:05:50 2023 UTC ()
(math/R-tidyr) Updated 1.2.1 to 1.3.0
# tidyr 1.3.0
## New features
* New family of consistent string separating functions:
`separate_wider_delim()`, `separate_wider_position()`,
`separate_wider_regex()`, `separate_longer_delim()`, and
`separate_longer_position()`. These functions are thorough refreshes of
`separate()` and `extract()`, featuring improved performance, greater
consistency, a polished API, and a new approach for handling problems. They
use stringr and supersede `extract()`, `separate()`, and `separate_rows()`
(#1304).
* `nest()` gains a `.by` argument which allows you to specify the columns to
nest by (rather than the columns to nest, i.e. through `...`). Additionally,
the `.key` argument is no longer deprecated, and is used whenever `...` isn't
specified (#1458).
* `unnest_longer()` gains a `keep_empty` argument like `unnest()` (#1339).
* `pivot_longer()` gains a `cols_vary` argument for controlling the ordering of
the output rows relative to their original row number (#1312).
* New datasets `who2`, `household`, `cms_patient_experience`, and
`cms_patient_care` to demonstrate various tidying challenges (#1333).
## Breaking changes
* The `...` argument of both `pivot_longer()` and `pivot_wider()` has been
moved to the front of the function signature, after the required arguments
but before the optional ones. Additionally, `pivot_longer_spec()`,
`pivot_wider_spec()`, `build_longer_spec()`, and `build_wider_spec()` have
all gained `...` arguments in a similar location. This change allows us to
more easily add new features to the pivoting functions without breaking
existing CRAN packages and user scripts.
`pivot_wider()` provides temporary backwards compatible support for the case
of a single unnamed argument that previously was being positionally matched to
`id_cols`. This one special case still works, but will throw a warning
encouraging you to explicitly name the `id_cols` argument.
To read more about this pattern, see
[Data, dots, details](https://design.tidyverse.org/dots-position.html) in the
tidyverse design guide (#1350).
## Lifecycle changes
* All functions deprecated in tidyr 1.0 and 1.2 (the old lazyeval functions
ending in `_` and various arguments to `unnest()`) now warn on every use.
They will be made defunct in 2024 (#1406).
## Rectangling
* `unnest_longer()` now consistently drops rows with either `NULL` or empty
vectors (like `integer()`) by default. Set the new `keep_empty` argument to
`TRUE` to retain them. Previously, `keep_empty = TRUE` was implicitly being
used for `NULL`, while `keep_empty = FALSE` was being used for empty vectors,
which was inconsistent with all other tidyr verbs with this argument (#1363).
* `unnest_longer()` now uses `""` in the index column for fully unnamed
vectors. It also now consistently uses `NA` in the index column for empty
vectors that are "kept" by `keep_empty = TRUE` (#1442).
* `unnest_wider()` now errors if any values being unnested are unnamed and
`names_sep` is not provided (#1367).
* `unnest_wider()` now generates automatic names for _partially_ unnamed
vectors. Previously it only generated them for fully unnamed vectors,
resulting in a strange mix of automatic names and name-repaired names (#1367).
## Bug fixes and minor improvements
### General
* Most tidyr functions now consistently disallow renaming during tidy-selection.
Renaming was never meaningful in these functions, and previously either had no
effect or caused problems (#1449, #1104).
* tidyr errors (including input validation) have been thoroughly reviewed
and should generally be more likely to point you in the right direction
(#1313, #1400).
* `uncount()` is now generic so implementations can be provided for objects
other than data frames (@mgirlich, #1358).
* `uncount()` gains a `...` argument. It comes between the required and the
optional arguments (@mgirlich, #1358).
* `nest()`, `complete()`, `expand()`, and `fill()` now document their support
for grouped data frames created by `dplyr::group_by()` (#952).
* All built in datasets are now standard tibbles (#1459).
* R >=3.4.0 is now required, in line with the tidyverse standard of supporting
the previous 5 minor releases of R.
* rlang >=1.0.4 and vctrs >=0.5.2 are now required (#1344, #1470).
* Removed dependency on ellipsis in favor of equivalent functions in rlang
(#1314).
### Nesting, packing, and chopping
* `unnest()`, `unchop()`, `unnest_longer()`, and `unnest_wider()` better handle
lists with additional classes (#1327).
* `pack()`, `unpack()`, `chop()`, and `unchop()` all gain an `error_call`
argument, which in turn improves some of the error calls shown in `nest()`
and various `unnest()` adjacent functions (#1446).
* `chop()`, `unpack()`, and `unchop()` all gain `...`, which must be empty
(#1447).
* `unpack()` does a better job of reporting column name duplication issues and
gives better advice about how to resolve them using `names_sep`. This also
improves errors from functions that use `unpack()`, like `unnest()` and
`unnest_wider()` (#1425, #1367).
### Pivoting
* `pivot_longer()` no longer supports interpreting `values_ptypes = list()`
and `names_ptypes = list()` as `NULL`. An empty `list()` is now interpreted as
a `<list>` prototype to apply to all columns, which is consistent with how any
other 0-length value is interpreted (#1296).
* `pivot_longer(values_drop_na = TRUE)` is faster when there aren't any missing
values to drop (#1392, @mgirlich).
* `pivot_longer()` is now more memory efficient due to the usage of
`vctrs::vec_interleave()` (#1310, @mgirlich).
* `pivot_longer()` now throws a slightly better error message when
`values_ptypes` or `names_ptypes` is provided and the coercion can't be made
(#1364).
* `pivot_wider()` now throws a better error message when a column selected by
`names_from` or `values_from` is also selected by `id_cols` (#1318).
* `pivot_wider()` is now faster when `names_sep` is provided (@mgirlich, #1426).
* `pivot_longer_spec()`, `pivot_wider_spec()`, `build_longer_spec()`, and
`build_wider_spec()` all gain an `error_call` argument, resulting in better
error reporting in `pivot_longer()` and `pivot_wider()` (#1408).
### Missing values
* `fill()` now works correctly when there is a column named `.direction` in
`data` (#1319, @tjmahr).
* `replace_na()` is faster when there aren't any missing values to replace
(#1392, @mgirlich).
* The documentation of the `replace` argument of `replace_na()` now mentions
that `replace` is always cast to the type of `data` (#1317).
(mef)
diff -r1.5 -r1.6 pkgsrc/math/R-tidyr/Makefile
diff -r1.7 -r1.8 pkgsrc/math/R-tidyr/distinfo
--- pkgsrc/math/R-tidyr/Makefile 2022/12/18 14:17:14 1.5
+++ pkgsrc/math/R-tidyr/Makefile 2023/06/07 12:05:50 1.6
| @@ -1,33 +1,34 @@ | | | @@ -1,33 +1,34 @@ |
1 | # $NetBSD: Makefile,v 1.5 2022/12/18 14:17:14 mef Exp $ | | 1 | # $NetBSD: Makefile,v 1.6 2023/06/07 12:05:50 mef Exp $ |
2 | | | 2 | |
3 | R_PKGNAME= tidyr | | 3 | R_PKGNAME= tidyr |
4 | R_PKGVER= 1.2.1 | | 4 | R_PKGVER= 1.3.0 |
5 | | | 5 | |
6 | MAINTAINER= pkgsrc-users@NetBSD.org | | 6 | MAINTAINER= pkgsrc-users@NetBSD.org |
7 | COMMENT= Easily tidy data with 'spread()' and 'gather()' functions | | 7 | COMMENT= Easily tidy data with 'spread()' and 'gather()' functions |
8 | LICENSE= mit | | 8 | LICENSE= mit |
9 | | | 9 | |
| | | 10 | DEPENDS+= R-cli>=3.4.1:../../math/R-dplyr |
| | | 11 | DEPENDS+= R-dplyr>=1.0.10:../../math/R-dplyr |
| | | 12 | DEPENDS+= R-ellipsis>=0.1.0:../../math/R-ellipsis |
10 | DEPENDS+= R-glue>=1.3.1:../../devel/R-glue | | 13 | DEPENDS+= R-glue>=1.3.1:../../devel/R-glue |
11 | DEPENDS+= R-lifecycle>=0.1.0:../../devel/R-lifecycle | | 14 | DEPENDS+= R-lifecycle>=1.0.3:../../devel/R-lifecycle |
12 | DEPENDS+= R-magrittr>=1.5:../../devel/R-magrittr | | 15 | DEPENDS+= R-magrittr>=1.5:../../devel/R-magrittr |
13 | DEPENDS+= R-purrr>=0.3.3:../../devel/R-purrr | | 16 | DEPENDS+= R-purrr>=1.0.1:../../devel/R-purrr |
14 | DEPENDS+= R-rlang>=0.4.5:../../devel/R-rlang | | 17 | DEPENDS+= R-rlang>=1.0.4:../../devel/R-rlang |
15 | DEPENDS+= R-tidyselect>=0.2.5:../../devel/R-tidyselect | | 18 | DEPENDS+= R-stringi>=1.5.0:../../textproc/R-stringi |
16 | DEPENDS+= R-dplyr>=0.8.2:../../math/R-dplyr | | 19 | DEPENDS+= R-tibble>=2.1.1:../../math/R-tibble |
17 | DEPENDS+= R-ellipsis>=0.1.0:../../math/R-ellipsis | | 20 | DEPENDS+= R-tidyselect>=1.2.0:../../devel/R-tidyselect |
18 | DEPENDS+= R-tibble>=2.1.3:../../math/R-tibble | | 21 | DEPENDS+= R-vctrs>=0.5.2:../../math/R-vctrs |
19 | DEPENDS+= R-vctrs>=0.2.0:../../math/R-vctrs | | | |
20 | DEPENDS+= R-stringi>=1.4.6:../../textproc/R-stringi | | | |
21 | | | 22 | |
22 | # Package suggested but not available: 'repurrrsive' | | 23 | # Package suggested but not available: 'repurrrsive' |
23 | TEST_DEPENDS+= R-covr-[0-9]*:../../devel/R-covr | | 24 | TEST_DEPENDS+= R-covr-[0-9]*:../../devel/R-covr |
24 | TEST_DEPENDS+= R-data.table-[0-9]*:../../textproc/R-data.table | | 25 | TEST_DEPENDS+= R-data.table-[0-9]*:../../textproc/R-data.table |
25 | TEST_DEPENDS+= R-jsonlite-[0-9]*:../../textproc/R-jsonlite | | 26 | TEST_DEPENDS+= R-jsonlite-[0-9]*:../../textproc/R-jsonlite |
26 | TEST_DEPENDS+= R-knitr-[0-9]*:../../print/R-knitr | | 27 | TEST_DEPENDS+= R-knitr-[0-9]*:../../print/R-knitr |
27 | TEST_DEPENDS+= R-readr-[0-9]*:../../textproc/R-readr | | 28 | TEST_DEPENDS+= R-readr-[0-9]*:../../textproc/R-readr |
28 | TEST_DEPENDS+= R-rmarkdown-[0-9]*:../../textproc/R-rmarkdown | | 29 | TEST_DEPENDS+= R-rmarkdown-[0-9]*:../../textproc/R-rmarkdown |
29 | TEST_DEPENDS+= R-testthat-[0-9]*:../../devel/R-testthat | | 30 | TEST_DEPENDS+= R-testthat-[0-9]*:../../devel/R-testthat |
30 | TEST_DEPENDS+= R-dplyr-[0-9]*:../../math/R-dplyr | | 31 | TEST_DEPENDS+= R-dplyr-[0-9]*:../../math/R-dplyr |
31 | TEST_DEPENDS+= R-purrr-[0-9]*:../../devel/R-purrr | | 32 | TEST_DEPENDS+= R-purrr-[0-9]*:../../devel/R-purrr |
32 | TEST_DEPENDS+= R-tidyselect-[0-9]*:../../devel/R-tidyselect | | 33 | TEST_DEPENDS+= R-tidyselect-[0-9]*:../../devel/R-tidyselect |
33 | | | 34 | |
--- pkgsrc/math/R-tidyr/distinfo 2022/12/18 14:17:14 1.7
+++ pkgsrc/math/R-tidyr/distinfo 2023/06/07 12:05:50 1.8
| @@ -1,5 +1,5 @@ | | | @@ -1,5 +1,5 @@ |
1 | $NetBSD: distinfo,v 1.7 2022/12/18 14:17:14 mef Exp $ | | 1 | $NetBSD: distinfo,v 1.8 2023/06/07 12:05:50 mef Exp $ |
2 | | | 2 | |
3 | BLAKE2s (R/tidyr_1.2.1.tar.gz) = a3f5d422e3d4bb07fbd5ddb48a84ce12753edde4509d3503f870a005e9a8b1e2 | | 3 | BLAKE2s (R/tidyr_1.3.0.tar.gz) = ebf74a30ef01f776cf6ef3dce302231408d66d42f8f27a99b525564159c35e73 |
4 | SHA512 (R/tidyr_1.2.1.tar.gz) = cb4faea07825507afbe4a0d90031bf79fbaf1d6c27df41c8b224089b654acc46f200afc27dfa8d723a9892ba2f3d0707222f8844d784bbdcf04de737ffe77989 | | 4 | SHA512 (R/tidyr_1.3.0.tar.gz) = 3a46dab708f4c02ed254a20a465db39763b45f113d556563b71e5ff5124ff5a40a30968b38b97d6b28d36d33ea8f0aa176773ad3dbb0d35d23356ccaaaf1a20f |
5 | Size (R/tidyr_1.2.1.tar.gz) = 746056 bytes | | 5 | Size (R/tidyr_1.3.0.tar.gz) = 823546 bytes |