Skip to content

Commit 41b54d7

Browse files
committed
Polish news, minor updates for R CMD Check notes
1 parent ca0c032 commit 41b54d7

File tree

3 files changed

+43
-29
lines changed

3 files changed

+43
-29
lines changed

.Rbuildignore

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919
^\.httr-oauth$
2020
^LICENSE\.md$
2121
^.vscode$
22+
^configure\.log$
23+
^src/Makevars$

NEWS.md

+41-29
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
# haven (development version)
22

3-
* Updated to ReadStat 1.1.8 RC (#650).
3+
## New author
44

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.
147

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
199

2010
* All `write_` functions can now write custom variable widths by setting the
2111
`width` attribute (#650).
@@ -24,16 +14,25 @@
2414
fixes issues with statistical software reading blank character variables with
2515
width 0 (#650).
2616

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+
2725
* `write_sav()` now checks for case-insensitive duplicate variable names
2826
(@juansebastianl, #641) and verifies that variable names are valid SPSS
2927
variables.
3028

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.
3333

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).
3736

3837
* POSIXct and POSIXlt values with no time component (e.g. "2010-01-01") were
3938
being converted to `NA` when attempting to convert the output timezone to UTC.
@@ -42,19 +41,32 @@
4241
* Fix bug in output timezone conversion that was causing variable labels and
4342
other variable attributes to disappear (#624).
4443

45-
* `write_sav()` successfully writes user missing values and ranges for
46-
`labelled()` integer vectors (#596).
44+
## Other improvements and fixes
4745

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.
5047

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).
5550

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.
5870

5971
# haven 2.4.3
6072

cleanup

100644100755
File mode changed.

0 commit comments

Comments
 (0)