fwrite 中的自动引用不起作用(Windows 10,R 3.3.1,data.table 1.9.7)

auto quote in fwrite not working (Windows 10, R 3.3.1, data.table 1.9.7)

有没有人对fwrite有同样的问题? 我正在使用 Windows R 3.3.1.

require(data.table)
fwrite(data.table(V1 = c("a;b", "a,b")), "test_fwrite1.csv", quote = "auto")
fread("test_fwrite1.csv")
read.csv("test_fwrite1.csv")

fwrite(data.table(V1 = c("a;b", "a,b")),
       "test_fwrite2.csv", sep = ";", quote = "auto")
fread("test_fwrite2.csv", sep = ";")
read.csv2("test_fwrite2.csv")

quote = "auto" 现已实施。请从 CRAN 或开发版本 1.9.8+ 安装,应该没有进一步的问题。

fwrite(data.table(V1 = c("a;b", "a,b")),
       "test_fwrite2.csv", sep = ";", quote = "auto")
fread("test_fwrite2.csv", sep = ";")
#     V1
# 1: a;b
# 2: a,b
read.csv2("test_fwrite2.csv")
#    V1
# 1 a;b
# 2 a,b