Skip to content

Commit 51a3a62

Browse files
R Core Teamcran-robot
authored andcommitted
version 0.8-88
1 parent fa4ced0 commit 51a3a62

6 files changed

Lines changed: 21 additions & 16 deletions

File tree

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-01-10 Uwe Ligges
2+
* writeForeignSPSS handles its own UTF8 correctly, including on Windows
3+
14
2024-06-25 Tomas Kalibera
25

36
* DESCRIPTION: Version is 0.8-87

DESCRIPTION

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
Package: foreign
22
Priority: recommended
3-
Version: 0.8-87
4-
Date: 2024-06-25
3+
Version: 0.8-88
4+
Date: 2025-01-10
55
Title: Read Data Stored by 'Minitab', 'S', 'SAS', 'SPSS', 'Stata',
66
'Systat', 'Weka', 'dBase', ...
77
Depends: R (>= 4.0.0)
88
Imports: methods, utils, stats
99
Authors@R: c(
10-
person("R Core Team",
11-
email = "R-core@R-project.org", role = c("aut", "cph", "cre")),
10+
person("R Core Team", email = "R-core@R-project.org",
11+
role = c("aut", "cph", "cre"),
12+
comment = c(ROR = "02zz1nj61")),
1213
person("Roger", "Bivand", role = c("ctb", "cph")),
1314
person(c("Vincent", "J."), "Carey", role = c("ctb", "cph")),
1415
person("Saikat", "DebRoy", role = c("ctb", "cph")),
@@ -35,8 +36,8 @@ BugReports: https://bugs.r-project.org
3536
MailingList: R-help@r-project.org
3637
URL: https://svn.r-project.org/R-packages/trunk/foreign/
3738
NeedsCompilation: yes
38-
Packaged: 2024-06-25 17:06:12 UTC; hornik
39-
Author: R Core Team [aut, cph, cre],
39+
Packaged: 2025-01-10 13:45:38 UTC; hornik
40+
Author: R Core Team [aut, cph, cre] (02zz1nj61),
4041
Roger Bivand [ctb, cph],
4142
Vincent J. Carey [ctb, cph],
4243
Saikat DebRoy [ctb, cph],
@@ -53,4 +54,4 @@ Author: R Core Team [aut, cph, cre],
5354
Free Software Foundation, Inc. [cph]
5455
Maintainer: R Core Team <R-core@R-project.org>
5556
Repository: CRAN
56-
Date/Publication: 2024-06-26 08:50:02 UTC
57+
Date/Publication: 2025-01-12 12:43:51 UTC

MD5

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
f87d40597e85fd95afb45eb64c651832 *COPYRIGHTS
2-
7152c966159331de7a530b44def3a662 *ChangeLog
3-
341f7fa929e38d0b5122c65465d128aa *DESCRIPTION
2+
3f48ecf37fbb2fd293a6d2356d557708 *ChangeLog
3+
336c2467d9a30a98ec30d016238b66a9 *DESCRIPTION
44
2e82d3849af11b642299fc69ccef26f3 *GPL-2
55
ed8178a14789e97ce12174176eed1908 *NAMESPACE
66
a6c68bd0f84690aab0887b99db7077e0 *R/R_systat.R
77
ea95d085c2d57992edec696c52bc43c9 *R/Sread.R
88
fe9264456fd8aa175971d74b69e4d48a *R/arff.R
99
10e59a4b27f2403f689194966883f31b *R/dbf.R
1010
b7e7d712506f5c522860a934f332cd43 *R/minitab.R
11-
09282ecf93e305abef7dca5be7155250 *R/octave.R
11+
cc70d1eba865bb091c031e4be66fd26d *R/octave.R
1212
64f1e4df457b9941596cc871eaa9f3f1 *R/read.dta.R
1313
fa87d427ceeef77e124a5a688fa34bc1 *R/read.epiinfo.R
1414
1086e6cc7c1c3bbb16f5681d88801b7d *R/read.ssd.R
1515
89dd9b2f65c59b73891a7b8c9b9b7752 *R/spss.R
16-
6dbcb06c926835e544ab99088dc27b82 *R/writeForeignCode.R
16+
ec0510889288505bfff18929aa5adebb *R/writeForeignCode.R
1717
f7d40d0f31f7c6ee49c01e8b2b8588b7 *R/writeForeignSAS.R
1818
f1301fddaba605563a68c718aab7b2b4 *R/xport.R
1919
0337f989613243d0134c33eb5584953b *R/zzz.R
@@ -101,7 +101,7 @@ c82c97b941d8c3dfbf780a18479c3c59 *tests/download.R
101101
269d75f02a2d06d3a7e2b7a2bc621ac9 *tests/dumpdata
102102
57ccf646d2c4ad366eb179b7e914312b *tests/electric.por
103103
859e5cbbd74fd94775c2c7f111ae2d71 *tests/ex1-51.mtp
104-
d9ebff4042010117916598a3d8b0745b *tests/keep/codefile.sps
104+
0a20eafa6d4eabcf4450d366eb7de49d *tests/keep/codefile.sps
105105
85becb8dd1c037ccdd4072bcfbf5e6d9 *tests/keep/datafile.dat
106106
a175ed9be624fb4d92b3ca53bd88a9e5 *tests/minitab.R
107107
57c6e64dd8bc3b41be2e7b6e698f46c2 *tests/minitab.Rout.save

R/octave.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### This file is part of the 'foreign' package for R.
22

3-
# Enhancements Copyright (c) 2004-2018 R Development Core Team
3+
# Enhancements Copyright (c) 2004-2025 R Development Core Team
44
# Copyright (c) 2004 Stephen Eglen
55

66
# This program is free software; you can redistribute it and/or modify
@@ -158,7 +158,7 @@ function(file)
158158
d <- readLines(con, n = 1L) # Skip over "# base, limit, increment".
159159
d <- as.numeric(scan(con, nlines = 1L, quiet = TRUE))
160160
stopifnot(length(d) == 3L)
161-
seq.int(from = d[1L], to = d[2L], by = d[3L])
161+
as.numeric(seq.int(from = d[1L], to = d[2L], by = d[3L]))
162162
}
163163

164164
read_octave_unknown <- function(con, type) {

R/writeForeignCode.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ writeForeignSPSS <- function(df, datafile, codefile, varnames = NULL, maxchars =
7272
cat("SET DECIMAL=DOT.\n\n", file = codefile) # required if SPSS runs in a locale with DECIMAL=comma
7373
cat("DATA LIST FILE=", adQuote(datafile), " free (\",\")\n",
7474
file = codefile, append = TRUE)
75-
cat('ENCODING="Locale"\n', file = codefile, append = TRUE)
75+
## formerly ENCODING="Locale" was used, but now "UTF8" is default encoding on all supported platforms
76+
cat('ENCODING="UTF8"\n', file = codefile, append = TRUE)
7677

7778
## No line longer than 251 chars:
7879
cat("/", paste(strwrap(paste(dl.varnames, collapse=" "), width=70), "\n"), " .\n\n",

tests/keep/codefile.sps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SET DECIMAL=DOT.
22

33
DATA LIST FILE= "datafile.dat" free (",")
4-
ENCODING="Locale"
4+
ENCODING="UTF8"
55
/ X1 X2 * X3 (A8)
66
.
77

0 commit comments

Comments
 (0)