Skip to content

Commit bcc0b68

Browse files
committed
Polish news
1 parent c38363e commit bcc0b68

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

NEWS.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
# haven (development version)
22

3-
* All `write_` functions gain a `.name_repair` argument that controls
4-
what happens when the input dataset has repeated column names (#436).
3+
## Partial reading
54

6-
* Can now write labelled vectors with `NULL` labels (#442).
5+
Thanks to the hard work of @mikmart, all `read_*()` functions gain three new arguments that allow you to read in only part of a large file:
76

8-
* `write_dta()` can now write dataset labels with the `label` argument,
9-
which defaults to the `label` attribute of the input data frame, if present
10-
(@gorcha, #449).
7+
* `col_select`: selects columns to read with a tidyselect interface (#248).
8+
* `skip`: skips rows before reading data (#370).
9+
* `n_max`: limits the number of rows to read.
10+
11+
This also brings with it a deprecation: `cols_only` in `read_sas()` has been deprecated in favour of the new `col_select` argument.
1112

12-
* Updated to latest ReadStat from @evanmiller
13-
* Fixes bug when generating files for Stata 15 (#461)
13+
## Minor improvements and bug fixes
1414

15-
* Allows non-unique labels when `levels = "label"` (#424, @gergness)
15+
* `as_factor()` allows non-unique labels when `levels = "label"`. This fixes
16+
a particularly annoying printing bug (#424, @gergness)
1617

1718
* `read_sas()` now supports (IS|E|B)8601(DT|DA|TM) date/time formats (@mikmart).
1819

19-
* `read_*()` functions gain three new arguments (@mikmart):
20+
* All `write_` functions gain a `.name_repair` argument that controls
21+
what happens when the input dataset has repeated column names (#436).
22+
23+
* All `write_` functions can now write labelled vectors with `NULL` labels
24+
(#442).
2025

21-
* `col_select`: selects columns to read with a tidyselect interface (#248).
22-
* `skip`: skips rows before reading data (#370).
23-
* `n_max`: limits the number of rows to read.
26+
* `write_dta()` can now write dataset labels with the `label` argument,
27+
which defaults to the `label` attribute of the input data frame, if present
28+
(@gorcha, #449).
2429

25-
* `read_sas()` argument `cols_only` is deprecated. Use the new `col_select` instead.
30+
* `write_dta()` works better with Stata 15, thanks to updated ReadStat (#461)
2631

2732
# haven 2.1.1
2833

0 commit comments

Comments
 (0)