|
1 | 1 | # haven (development version)
|
2 | 2 |
|
3 |
| -* Updated to ReadStat 1.1.8 RC (#650). |
| 3 | +## New author |
4 | 4 |
|
5 |
| -* Errors and warnings now use `cli_abort()` and `cli_warning()`. cli >= 3.0.0 |
6 |
| - has been added to imports to support this change (#661). |
7 |
| - |
8 |
| -* R 3.4 is now the minimum supported version, in line with [tidyverse policy](https://www.tidyverse.org/blog/2019/04/r-version-support/). |
9 |
| - |
10 |
| -* haven now uses the lifecycle package to manage deprecations. |
11 |
| - |
12 |
| -* `labelled()` vectors now throw a warning when combining two vectors with |
13 |
| - conflicting labels (#667). |
| 5 | +* @gorcha is now a haven author in recognition of his significant and sustained |
| 6 | + contributions. |
14 | 7 |
|
15 |
| -* `write_dta()` now uses strL when strings are too long to be stored in an str# |
16 |
| - variable (#437). strL is used when strings are longer than 2045 characters by |
17 |
| - default, which matches Stata's behaviour, but this can be reduced with the |
18 |
| - `strl_threshold` argument. |
| 8 | +## File writing improvements |
19 | 9 |
|
20 | 10 | * All `write_` functions can now write custom variable widths by setting the
|
21 | 11 | `width` attribute (#650).
|
|
24 | 14 | fixes issues with statistical software reading blank character variables with
|
25 | 15 | width 0 (#650).
|
26 | 16 |
|
| 17 | +* `write_dta()` now uses strL when strings are too long to be stored in an str# |
| 18 | + variable (#437). strL is used when strings are longer than 2045 characters by |
| 19 | + default, which matches Stata's behaviour, but this can be reduced with the |
| 20 | + `strl_threshold` argument. |
| 21 | + |
| 22 | +* `write_xpt()` can now write dataset labels with the `label` argument, which |
| 23 | + defaults to the `label` attribute of the input data frame, if present (#562). |
| 24 | + |
27 | 25 | * `write_sav()` now checks for case-insensitive duplicate variable names
|
28 | 26 | (@juansebastianl, #641) and verifies that variable names are valid SPSS
|
29 | 27 | variables.
|
30 | 28 |
|
31 |
| -* `zap_labels()` gains a `user_na` argument to control whether user-defined |
32 |
| - missing values are converted to `NA` or left as is (#638). |
| 29 | +* The `compress` argument for `write_sav()` now supports all 3 SPSS compression |
| 30 | + modes specified as a character string - "byte", "none" and "zsav" (#614). |
| 31 | + `TRUE` and `FALSE` can be used for backwards compatibility, and correspond to |
| 32 | + the "zsav" and "none" options respectively. |
33 | 33 |
|
34 |
| -* vctrs casting and coercion generics now do less work when working with two |
35 |
| - identical `labelled()` vectors. This significantly improves performance when |
36 |
| - working with `labelled()` vectors in grouped data frames (#658). |
| 34 | +* `write_sav()` successfully writes user missing values and ranges for |
| 35 | + `labelled()` integer vectors (#596). |
37 | 36 |
|
38 | 37 | * POSIXct and POSIXlt values with no time component (e.g. "2010-01-01") were
|
39 | 38 | being converted to `NA` when attempting to convert the output timezone to UTC.
|
|
42 | 41 | * Fix bug in output timezone conversion that was causing variable labels and
|
43 | 42 | other variable attributes to disappear (#624).
|
44 | 43 |
|
45 |
| -* `write_sav()` successfully writes user missing values and ranges for |
46 |
| - `labelled()` integer vectors (#596). |
| 44 | +## Other improvements and fixes |
47 | 45 |
|
48 |
| -* `write_xpt()` can now write dataset labels with the `label` argument, which |
49 |
| - defaults to the `label` attribute of the input data frame, if present (#562). |
| 46 | +* Updated to ReadStat 1.1.8 RC. |
50 | 47 |
|
51 |
| -* The `compress` argument for `write_sav()` now supports all 3 SPSS compression |
52 |
| - modes specified as a character string - "byte", "none" and "zsav" (#614). |
53 |
| - `TRUE` and `FALSE` can be used for backwards compatibility, and correspond to |
54 |
| - the "zsav" and "none" options respectively. |
| 48 | + * Fix bug when writing formats to XPT files (#650). |
| 49 | + * Fix off by one error in indexing for strL variables (#437). |
55 | 50 |
|
56 |
| -* @gorcha is now a haven author in recognition of his significant and sustained |
57 |
| - contributions. |
| 51 | +* `labelled()` vectors now throw a warning when combining two vectors with |
| 52 | + conflicting labels (#667). |
| 53 | + |
| 54 | +* `zap_labels()` gains a `user_na` argument to control whether user-defined |
| 55 | + missing values are converted to `NA` or left as is (#638). |
| 56 | + |
| 57 | +* vctrs casting and coercion generics now do less work when working with two |
| 58 | + identical `labelled()` vectors. This significantly improves performance when |
| 59 | + working with `labelled()` vectors in grouped data frames (#658). |
| 60 | + |
| 61 | +* Errors and warnings now use `cli_abort()` and `cli_warning()` (#661). |
| 62 | + |
| 63 | +## Dependency changes |
| 64 | + |
| 65 | +* R 3.4 is now the minimum supported version, in line with [tidyverse policy](https://www.tidyverse.org/blog/2019/04/r-version-support/). |
| 66 | + |
| 67 | +* cli >= 3.0.0 has been added to Imports to support new error messaging. |
| 68 | + |
| 69 | +* lifecycle has been added to Imports, and is now used to manage deprecations. |
58 | 70 |
|
59 | 71 | # haven 2.4.3
|
60 | 72 |
|
|
0 commit comments