Skip to content

Commit c811b07

Browse files
hadleycran-robot
authored andcommitted
version 2.5.2
1 parent f29bf48 commit c811b07

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+776
-468
lines changed

DESCRIPTION

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: haven
22
Title: Import and Export 'SPSS', 'Stata' and 'SAS' Files
3-
Version: 2.5.1
3+
Version: 2.5.2
44
Authors@R: c(
5-
person("Hadley", "Wickham", , "hadley@rstudio.com", role = c("aut", "cre")),
5+
person("Hadley", "Wickham", , "hadley@posit.co", role = c("aut", "cre")),
66
person("Evan", "Miller", role = c("aut", "cph"),
77
comment = "Author of included ReadStat code"),
88
person("Danny", "Smith", role = "aut"),
@@ -19,21 +19,20 @@ Imports: cli (>= 3.0.0), forcats (>= 0.2.0), hms, lifecycle, methods,
1919
readr (>= 0.1.0), rlang (>= 0.4.0), tibble, tidyselect, vctrs
2020
(>= 0.3.0)
2121
Suggests: covr, crayon, fs, knitr, pillar (>= 1.4.0), rmarkdown,
22-
testthat (>= 3.0.0)
22+
testthat (>= 3.0.0), utf8
2323
LinkingTo: cpp11
2424
VignetteBuilder: knitr
2525
Config/Needs/website: tidyverse/tidytemplate
2626
Config/testthat/edition: 3
2727
Encoding: UTF-8
28-
RoxygenNote: 7.2.1
29-
SystemRequirements: GNU make, C++11, zlib: zlib1g-dev (deb), zlib-devel
30-
(rpm)
28+
RoxygenNote: 7.2.3
29+
SystemRequirements: GNU make, zlib: zlib1g-dev (deb), zlib-devel (rpm)
3130
NeedsCompilation: yes
32-
Packaged: 2022-08-22 18:39:56 UTC; hadleywickham
31+
Packaged: 2023-02-28 14:42:03 UTC; hadleywickham
3332
Author: Hadley Wickham [aut, cre],
3433
Evan Miller [aut, cph] (Author of included ReadStat code),
3534
Danny Smith [aut],
3635
RStudio [cph, fnd]
37-
Maintainer: Hadley Wickham <hadley@rstudio.com>
36+
Maintainer: Hadley Wickham <hadley@posit.co>
3837
Repository: CRAN
39-
Date/Publication: 2022-08-22 19:10:04 UTC
38+
Date/Publication: 2023-02-28 17:52:31 UTC

MD5

Lines changed: 55 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
faecc751bfb4008a30bc4d23a9b43c8c *DESCRIPTION
1+
f519cb9fda1b9abfaaaaecc480308eb4 *DESCRIPTION
22
59057db2fcc7f8f6bb930846cc7ae761 *LICENSE
3-
9ed002a2ff19b8820532abc36e3f836d *NAMESPACE
4-
e92d745029042e0c9643a531cf141f29 *NEWS.md
5-
8609e2db5b1f42c6a9e02083cdc3ce18 *R/as_factor.R
3+
3069948a2b73339ed41dbfc998f4d4ed *NAMESPACE
4+
bde1d0a94afd253a7593fe87872ef883 *NEWS.md
5+
e3412da1ca93eb6285d9644d2a07db8e *R/as_factor.R
66
7eed111c08f85088c6225b5782675f13 *R/cpp11.R
77
abe999b7fa23ff099f13d84234cb7855 *R/haven-package.R
8-
a16a03089c224d211724b34f0f059208 *R/haven-sas.R
9-
4a5b3c7cb295994f78d2f94186d527b7 *R/haven-spss.R
10-
b1944105ad3ede4e68fc743623c5cfeb *R/haven-stata.R
11-
b6470098bd87e7f7efb03e2ff084fe20 *R/labelled-pillar.R
8+
d8c1f04cf7a71dd85ef948b66ad760e2 *R/haven-sas.R
9+
56dae5467784a30c8a3ecbbd4c8fdf79 *R/haven-spss.R
10+
5840442368c2fa665bf81da402234807 *R/haven-stata.R
11+
f7f12a742aa3beea91c5555964bf865e *R/labelled-pillar.R
1212
518e57a221df129861c99d983f0c6ea8 *R/labelled.R
13-
4ce56e52e799d23fe481f5d174d04741 *R/labelled_spss.R
13+
ea607e28b5195ab0135ccde63d99dbdf *R/labelled_spss.R
1414
7f11d00351f491ad5ddac26093462273 *R/tagged_na.R
1515
5bdcef0542cf1adf95968058cdde71a3 *R/update.R
1616
49f0804f872cae3805eace38440527bf *R/utils.R
@@ -21,20 +21,20 @@ b6470098bd87e7f7efb03e2ff084fe20 *R/labelled-pillar.R
2121
88b0c02d00c12eb30479953c815329dd *R/zap_missing.R
2222
2e572376deee0b066ce9ed926df35586 *R/zap_widths.R
2323
7fc3339c794878bdf42aad17d9aa974c *R/zzz.R
24-
d5a2885899327529b021b4abb98cc6c7 *README.md
25-
ba8b5157d5f804ca856195639714cdde *build/vignette.rds
24+
6cd39715085a4008e71c1aee78c8144a *README.md
25+
019ac2e867ef758f714f49743153aa0b *build/vignette.rds
2626
bc7baead3b6080f04dc81efd2fe1ff39 *cleanup
2727
1518305284b6eb1c6fe933781e75d1fe *configure
2828
d41d8cd98f00b204e9800998ecf8427e *configure.win
29-
2e217a3f5ce3af05183d41b049e3ac28 *inst/doc/datetimes.Rmd
30-
908fd08cd2c8d015e76cfcebb760cca0 *inst/doc/datetimes.html
29+
d8a370e0744296e9fa777a6a7a446431 *inst/doc/datetimes.Rmd
30+
ae1ee5fe5afb7d277cbfe667dafc27c0 *inst/doc/datetimes.html
3131
d65caa7be28eceb46483900f58d129db *inst/doc/semantics.R
3232
7597ff3a37dd05812a625a401f75ab60 *inst/doc/semantics.Rmd
33-
172249ec2757a8bea178d09ea245ad99 *inst/doc/semantics.html
33+
e8e6d7e7638c745996800c530423732b *inst/doc/semantics.html
3434
782776cdad132bd02616ab5e0ddbb1a6 *inst/examples/iris.dta
3535
6d7292019b3784d97ba2e2ced4ce5bac *inst/examples/iris.sas7bdat
3636
9eec419726af6bb92009b25c5224e32b *inst/examples/iris.sav
37-
af144a86f0e446ef4c79743eaf1f206e *man/as_factor.Rd
37+
a0218c945473037b522cae8a8c219bc0 *man/as_factor.Rd
3838
cb1e46f469cfbbbde29c8b5113e1d789 *man/figures/lifecycle-archived.svg
3939
c0d2e5a54f1fa4ff02bf9533079dd1f7 *man/figures/lifecycle-defunct.svg
4040
a1b8c987c676c16af790f563f96cbb1f *man/figures/lifecycle-deprecated.svg
@@ -44,24 +44,25 @@ c3978703d8f40f2679795335715e98f4 *man/figures/lifecycle-experimental.svg
4444
53b3f893324260b737b3c46ed2a0e643 *man/figures/lifecycle-stable.svg
4545
1c1fe7a759b86dc6dbcbe7797ab8246c *man/figures/lifecycle-superseded.svg
4646
0fa3558f0a322190305e9aa9c560305e *man/figures/logo.png
47-
914ef3d980d18fa889153b23a4fb88e8 *man/haven-package.Rd
47+
b8896dd99002143c76f20e7a18a8b692 *man/haven-package.Rd
4848
77d25548d3a63d81e33b7cab8bc49554 *man/labelled.Rd
4949
d5a3f8c86262f72ff7705a9cfcc54131 *man/labelled_spss.Rd
5050
24caa8b914409540e21ab4643fa6b3c5 *man/print_labels.Rd
51-
57eed56a2c44d3e95bcb3ea0a7656cf7 *man/read_dta.Rd
52-
da79f92defbf08fcb95dca9c04690474 *man/read_sas.Rd
53-
29241bb09400768d0132fef8caa5a1e3 *man/read_spss.Rd
54-
df032fa48ff1808276bba4fa2e0f5061 *man/read_xpt.Rd
51+
470638653fcddfbda0009d20229a2f3d *man/read_dta.Rd
52+
0195ccce3ec9a31838f93896ebae2c3a *man/read_sas.Rd
53+
69db908dbc73482255193a1981369dd6 *man/read_spss.Rd
54+
6919049bb970ee774abf4ce3c7215d8c *man/read_xpt.Rd
5555
63677c09f81f127d6d177f1578a51899 *man/tagged_na.Rd
5656
eda687561f95b4621502d83010ad03dc *man/vec_arith.haven_labelled.Rd
57+
b31de93f5ab8e6c33ad3361b37b4d24a *man/write_sas.Rd
5758
4444694fd93a620e651ad56e31057d1b *man/zap_empty.Rd
5859
cee7653156802db60b699a543005cbd7 *man/zap_formats.Rd
5960
6cdf8da24c21fdcb11b6ff38f5814c0c *man/zap_label.Rd
6061
e9ff556e714b7ad8f979b048dee43786 *man/zap_labels.Rd
6162
769d5161d295987b7c3bb18c61c24d5c *man/zap_missing.Rd
6263
1a288019a7882014999286262ecbf19d *man/zap_widths.Rd
6364
f2bea07d45886e42d7d63463a717eb92 *src/DfReader.cpp
64-
d1e21bbb33ea3f6fbe519c33b2f1ce20 *src/DfWriter.cpp
65+
74cb9e923c91a96149844a721d6b2d9d *src/DfWriter.cpp
6566
b746a25e92862049035b66165241390c *src/Makevars.in
6667
913ef0ded6947861f7d1c835500c84b9 *src/Makevars.win
6768
cb7f8b892397337c54b7c822b0bd0506 *src/cpp11.cpp
@@ -70,60 +71,60 @@ e02d7d3096abb42d59ffa98896ea6f30 *src/haven_types.h
7071
103dff612cd33e793e40e7248ad66baa *src/readstat/CKHashTable.c
7172
491bcc72997b8fda9127f32362515309 *src/readstat/CKHashTable.h
7273
bf3e2d382bcd8d3db7df44f3fd327563 *src/readstat/LICENSE
73-
e30bc07b0af89a894451a37fafb453c3 *src/readstat/NEWS
74+
e3082a28e59aa1c74aa9e22b1001347c *src/readstat/NEWS
7475
08628913656834cf3079d1dc746e4128 *src/readstat/readstat.h
75-
91afb7a9b9258fa50c7066b55ea97999 *src/readstat/readstat_bits.c
76-
ee0bb989382f7fde0b4ecd721c63437a *src/readstat/readstat_bits.h
77-
2a3cffc8f3b29795c1bf0570591ce7e0 *src/readstat/readstat_convert.c
76+
7647859b80059b90b2be7a9899c4e1fa *src/readstat/readstat_bits.c
77+
08027af7d16a2c3c00655279060e033f *src/readstat/readstat_bits.h
78+
1229a4e3eebafd28c44609db0821048d *src/readstat/readstat_convert.c
7879
94288276f3982ee9834e010e151d6645 *src/readstat/readstat_convert.h
7980
61468195b63500e28cb9df6d3e1bc5d5 *src/readstat/readstat_error.c
8081
2935273dde775fb72f077e45a259337f *src/readstat/readstat_iconv.h
8182
24f4b501fef49f6534afe97e13ede650 *src/readstat/readstat_io_unistd.c
8283
6d20f5534b536f5fbd48480cb1df9a7a *src/readstat/readstat_io_unistd.h
83-
5d8a61f1413683fc00f56388c8fc1d90 *src/readstat/readstat_malloc.c
84+
b926de5829629445645907a285e555e7 *src/readstat/readstat_malloc.c
8485
1e19c96593352dfd6acf55fd290101f4 *src/readstat/readstat_malloc.h
8586
cc8ab759021ae0b60db5406785672490 *src/readstat/readstat_metadata.c
86-
164bf3ab50223b1fa8da29a967875ff7 *src/readstat/readstat_parser.c
87+
6840450a708abd555df60735b562b854 *src/readstat/readstat_parser.c
8788
6a4cde4107088907ed746c200fe69be7 *src/readstat/readstat_strings.h
8889
ad5546731948373135e21a00a9b71294 *src/readstat/readstat_value.c
89-
8c4e3303f75c6d8dcd0032ba4a453bc3 *src/readstat/readstat_variable.c
90-
ddd509d5980bd19d65613b4d3c2515fd *src/readstat/readstat_writer.c
90+
89700b7042d2a3430386a2470c943236 *src/readstat/readstat_variable.c
91+
27f3522762e5186b288402efdc70b734 *src/readstat/readstat_writer.c
9192
9613047f750a4812cef0674584c5f12d *src/readstat/readstat_writer.h
92-
70b27ed1d71dc01c682c05ae8ef25440 *src/readstat/sas/ieee.c
93+
8a72f65a3ab741c09876b1c0937c3330 *src/readstat/sas/ieee.c
9394
a9f00e5b895054ef83c9bf82eb8f257f *src/readstat/sas/ieee.h
94-
74983b99dc9d3d7c3d70ece02048ade2 *src/readstat/sas/readstat_sas.c
95+
6918f1c55aa88a05a2c4e78337242fb2 *src/readstat/sas/readstat_sas.c
9596
269da3f8e7515c7746b0dcb87cc2f74a *src/readstat/sas/readstat_sas.h
96-
6533c74947e64c6a94364a85ab76c196 *src/readstat/sas/readstat_sas7bcat_read.c
97+
1fbab458076784c43af745e0420bc538 *src/readstat/sas/readstat_sas7bcat_read.c
9798
4190e1b6c322e28cb4a7788d0dfd3ad9 *src/readstat/sas/readstat_sas7bcat_write.c
98-
c5c1869728e57bbedd480de9129a07af *src/readstat/sas/readstat_sas7bdat_read.c
99+
e51f110f8a729f303b61c51f385a1584 *src/readstat/sas/readstat_sas7bdat_read.c
99100
84599f1bd91537e5d3ceb6608ba0e257 *src/readstat/sas/readstat_sas7bdat_write.c
100-
2e588ecf8b2d2079783c632bbebbc330 *src/readstat/sas/readstat_sas_rle.c
101+
a668cb7f9def0eb4309d07d23539bda0 *src/readstat/sas/readstat_sas_rle.c
101102
a54f285ec408075cfd4f16f30fc4dc8e *src/readstat/sas/readstat_sas_rle.h
102103
10f0fb38bd48b60a82a1123c3d9ecfaf *src/readstat/sas/readstat_xport.c
103104
55f7f711c130033550160c25a25ea5ec *src/readstat/sas/readstat_xport.h
104105
09a6f015d16e298a7b73ce9eab56491e *src/readstat/sas/readstat_xport_parse_format.c
105106
eb89ca9d882a56c335a3a8bf5b6e245a *src/readstat/sas/readstat_xport_parse_format.h
106107
77abd3c879d34b9a32389317100f9a63 *src/readstat/sas/readstat_xport_parse_format.rl
107-
d52760d01a60caae0e55c244b7de592d *src/readstat/sas/readstat_xport_read.c
108+
af999fdea307f7747adc955cfbdc0bff *src/readstat/sas/readstat_xport_read.c
108109
ee35092f6f8e6408029350bd497fcb70 *src/readstat/sas/readstat_xport_write.c
109-
7d73ca9f1c1458eca16f0cfb82824188 *src/readstat/spss/readstat_por.c
110-
366840304a855d4901ae0b30f65c6835 *src/readstat/spss/readstat_por.h
110+
59289ae6297a9f53b07072419761f388 *src/readstat/spss/readstat_por.c
111+
55eff732648d472313de8ebf2b3a22c9 *src/readstat/spss/readstat_por.h
111112
39debfe6648b1a3e4b8986a47fefc60a *src/readstat/spss/readstat_por_parse.c
112113
8fef965008763eac54d94438d33f7408 *src/readstat/spss/readstat_por_parse.h
113114
5883eb91f972c7749322857c4e02d570 *src/readstat/spss/readstat_por_parse.rl
114115
ea0e57265b01821821e4c8896fafeb73 *src/readstat/spss/readstat_por_read.c
115-
da5a6b1f7d245248e6a35274c4132e5c *src/readstat/spss/readstat_por_write.c
116+
54ecf510eaef5bd5082f4adbef80ff9c *src/readstat/spss/readstat_por_write.c
116117
ac54ef1a89ec422b9c5eabc2cced87cd *src/readstat/spss/readstat_sav.c
117118
5a95cb372899834027dba1c44fa8bb1c *src/readstat/spss/readstat_sav.h
118119
fedb859ccd21066ee484794d18db2e5b *src/readstat/spss/readstat_sav_compress.c
119120
36c3cf444f8bd315b2df9241ff4bd86c *src/readstat/spss/readstat_sav_compress.h
120-
fc6cbaaa120bd9b6c422409d993d2ddb *src/readstat/spss/readstat_sav_parse.c
121+
34742038c4a553dffcb2136f730eb410 *src/readstat/spss/readstat_sav_parse.c
121122
0153d271c5d495b5977057d9c19d9f01 *src/readstat/spss/readstat_sav_parse.h
122-
370e8663842a9cc61dc91a93df984cd6 *src/readstat/spss/readstat_sav_parse.rl
123+
124e0c5a4ba8dc5585c754039f74058f *src/readstat/spss/readstat_sav_parse.rl
123124
05cbfd44c26c15a392607cc82a0d0037 *src/readstat/spss/readstat_sav_parse_timestamp.c
124125
204b84a989b74ca7b4aad4205b67c357 *src/readstat/spss/readstat_sav_parse_timestamp.h
125126
ebceeb91b0b09cf5aa6f169e7305d1ca *src/readstat/spss/readstat_sav_parse_timestamp.rl
126-
9e35f19b884566c818627d04e2cca668 *src/readstat/spss/readstat_sav_read.c
127+
41605580635276ccc5d7d1119540f7c5 *src/readstat/spss/readstat_sav_read.c
127128
7c6f9b82065e61faece4e34ac216e530 *src/readstat/spss/readstat_sav_write.c
128129
0af090ab65b13eb000cbf41485ea7a3f *src/readstat/spss/readstat_spss.c
129130
7b9fd9b57ab7ba821f42a40880ebe11a *src/readstat/spss/readstat_spss.h
@@ -142,7 +143,7 @@ d5f3933987e4372756c63c0459f545de *src/readstat/stata/readstat_dta_parse_timestam
142143
cf98cd82614330671b97dc2ffa92b8f3 *src/readstat/stata/readstat_dta_parse_timestamp.h
143144
27e936432e52694c55ce40db34b10a90 *src/readstat/stata/readstat_dta_parse_timestamp.rl
144145
8958c7f7acaee59d36afa75d91127d1b *src/readstat/stata/readstat_dta_read.c
145-
65c97dd4a78990584eaaa88708b36913 *src/readstat/stata/readstat_dta_write.c
146+
a48c152d2b0f3b4228fcaf5ae305f2c4 *src/readstat/stata/readstat_dta_write.c
146147
a1072d79ee57035032acde3a021aca5f *src/readstat/txt/commands_util.c
147148
4877d5b8f9f088c20fb19ce82837a18c *src/readstat/txt/commands_util.h
148149
a59afac1ff703b431f428116606aff95 *src/readstat/txt/readstat_copy.c
@@ -159,12 +160,12 @@ a59afac1ff703b431f428116606aff95 *src/readstat/txt/readstat_copy.c
159160
2a69187b115b0456d1ce351206bd8de7 *src/tagged_na.c
160161
f3a180e741a675c27b36d4ce86e1922e *src/tagged_na.h
161162
130ef81e2dee1f48002137a5809e7765 *tests/testthat.R
162-
a00968d7f2bdad569e33f11b82ae277d *tests/testthat/_snaps/haven-sas.md
163-
01cf9ccfb26bb458dae4c714b1f39b51 *tests/testthat/_snaps/haven-spss.md
163+
45d85fa558ff6c592b41cd78d6153af1 *tests/testthat/_snaps/haven-sas.md
164+
cc045252c644c88a3eff4b05f4dcadff *tests/testthat/_snaps/haven-spss.md
164165
aa4bb3b453fcc54792267e1c72bac38d *tests/testthat/_snaps/haven-stata.md
165-
0d9f235049c3a9d64769698de1168522 *tests/testthat/_snaps/labelled-pillar.md
166-
839110dc9ce425fe846cb538ebf898ce *tests/testthat/_snaps/labelled.md
167-
dd5418be3e6bbaa44cbd7926d758072f *tests/testthat/_snaps/labelled_spss.md
166+
eb67f710235f2cff09bbc28ffde79433 *tests/testthat/_snaps/labelled-pillar.md
167+
0192c9f26a132209c72ef65f7cdd88a2 *tests/testthat/_snaps/labelled.md
168+
bc6ad8e61cc6207eb8a41304c6668acc *tests/testthat/_snaps/labelled_spss.md
168169
7e6c8338b53c0d14f6e9932a27ac7d0f *tests/testthat/_snaps/tagged_na.md
169170
20eca1176892ac88ce4453a00692246c *tests/testthat/helper-roundtrip.R
170171
fbadd9b4b37370561380b3ed6a03f1c3 *tests/testthat/helpers-types.R
@@ -187,17 +188,17 @@ b5faae7735cdbdea22666cab82af6444 *tests/testthat/stata/tagged-na-int.dta
187188
5781ee0b0dd56a2d8cb1ac287731b8f0 *tests/testthat/stata/types.dta
188189
25af7a86443770464c436d993e4b61f3 *tests/testthat/test-as_factor.R
189190
00857b0df33ee4d6b4785bc2f28d6b58 *tests/testthat/test-force_utc.R
190-
77921d944d94cd16fc1770885d112035 *tests/testthat/test-haven-sas.R
191-
de56f445a8f9878024f2c6cc8767b0d7 *tests/testthat/test-haven-spss.R
192-
4f528dd1ad0287397afc266da6c25a47 *tests/testthat/test-haven-stata.R
193-
82d89f592b828bb560d196d3b5112829 *tests/testthat/test-labelled-pillar.R
194-
47ab2805d148ee4e9d7206aec03be6b0 *tests/testthat/test-labelled.R
195-
75b0a87f3f914a416f299b6917a74407 *tests/testthat/test-labelled_spss.R
191+
c7e0d1fccc3da0ea1f351ea3b39230a4 *tests/testthat/test-haven-sas.R
192+
a0d2f6dff9bc5005c287bf5b4523a26d *tests/testthat/test-haven-spss.R
193+
ad99c432674b8691b2428c8377a0a755 *tests/testthat/test-haven-stata.R
194+
3222959e89ae957b74c65a7587098783 *tests/testthat/test-labelled-pillar.R
195+
1e3d346b07dedc19ae9fd2e2e6c2579d *tests/testthat/test-labelled.R
196+
56a9033b36cf4233e79e2f509e4cbcdc *tests/testthat/test-labelled_spss.R
196197
d611a2a8dd215709917e62a1c138b3f4 *tests/testthat/test-tagged_na.R
197198
7fb6cf2475f91e4885eb4c26a30f8575 *tests/testthat/test-zap-empty.R
198199
8036976ea2299c47c75b5440afcda862 *tests/testthat/test-zap_label.R
199200
b97a88a83a10b191e331b655b58fa865 *tests/testthat/test-zap_labels.R
200201
2b6e366cd86f2ee0ec9518a6b28c936c *tests/testthat/test-zap_missing.R
201202
b8ae04ebe61da58539c7369c65da7ea5 *tests/testthat/test-zap_widths.R
202-
2e217a3f5ce3af05183d41b049e3ac28 *vignettes/datetimes.Rmd
203+
d8a370e0744296e9fa777a6a7a446431 *vignettes/datetimes.Rmd
203204
7597ff3a37dd05812a625a401f75ab60 *vignettes/semantics.Rmd

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ S3method(vec_ptype2,haven_labelled_spss.integer)
5555
S3method(vec_ptype2,integer.haven_labelled)
5656
S3method(vec_ptype2,integer.haven_labelled_spss)
5757
S3method(vec_ptype_abbr,haven_labelled)
58+
S3method(vec_ptype_abbr,haven_labelled_spss)
5859
S3method(vec_ptype_full,haven_labelled)
5960
S3method(vec_ptype_full,haven_labelled_spss)
6061
S3method(zap_formats,data.frame)

NEWS.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
1+
# haven 2.5.2
2+
3+
* Updated to ReadStat 1.1.9.
4+
5+
* Fix various SAS catalog file reading bugs (#529, #653, #680, #696, #705).
6+
* Increase maximum SAS page file size to 16MiB (#697).
7+
* Ignore invalid SAV timestamp strings (#683).
8+
* Fix compiler warnings (#707).
9+
10+
* The experimental `write_sas()` function has been deprecated (#224). The
11+
sas7bdat file format is complex and undocumented, and as such writing SAS
12+
files is not officially supported by ReadStat. `write_xpt()` should be used
13+
instead - it produces files in the SAS transport format, which has
14+
limitations but will be reliably read by SAS.
15+
16+
* `write_*()` functions gain a new `adjust_tz` argument to allow more control
17+
over time zone conversion for date-time variables (#702). Thanks to @jmobrien
18+
for the detailed issue and feedback.
19+
20+
Stata, SPSS and SAS do not have a concept of time zone. Since haven 2.4.0
21+
date-time values in non-UTC time zones are implicitly converted when writing
22+
to ensure the time displayed in Stata/SPSS/SAS will match the time displayed
23+
to the user in R (see #555). This is the behaviour when `adjust_tz = TRUE`
24+
(the default). Although this is in line with general user expectations it can
25+
cause issues when the time zone is important, for e.g. when looking at
26+
differences between time points, since the underlying numeric data is changed
27+
to preserve the displayed time. Use `adjust_tz = FALSE` to write the time as
28+
the corresponding UTC value, which will appear different to the user but
29+
preserves the underlying numeric data.
30+
31+
* `write_*()` functions previously returned the data frame with minor
32+
alterations made to date-time variables. These functions now invisibly return
33+
the original input data frame unchanged (@jmobrien, #702).
34+
35+
* Fix bug in string variable width calculation that treated `NA` values as width
36+
2. `NA` values are now treated as blanks for width calculations (#699).
37+
138
# haven 2.5.1
239

340
* All `labelled()` vectors now have left-aligned column headers when printing

R/as_factor.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#' Convert input to a factor.
1+
#' Convert labelled vectors to factors
22
#'
3-
#' The base function `as.factor()` is not a generic, but this variant
4-
#' is. Methods are provided for factors, character vectors, labelled
5-
#' vectors, and data frames. By default, when applied to a data frame,
6-
#' it only affects [labelled] columns.
3+
#' The base function `as.factor()` is not a generic, but [forcats::as_factor()]
4+
#' is. haven provides `as_factor()` methods for [labelled()] and
5+
#' [labelled_spss()] vectors, and data frames. By default, when applied to a
6+
#' data frame, it only affects labelled columns.
77
#'
88
#' Includes methods for both class `haven_labelled` and `labelled`
99
#' for backward compatibility.

0 commit comments

Comments
 (0)