gpt4 book ai didi

r - fread 中的错误(showProgress 不是整数类型,而是类型 'logical'。请报告。)

转载 作者:行者123 更新时间:2023-12-02 01:19:41 24 4
gpt4 key购买 nike

我用过fread读取数据。但是错误出现了:

showProgress is not type integer but type 'logical'. Please report.

这是可重现的脚本:

library(data.table)
x <- "sgsddsfsfsf"
write.csv2(x,"check.csv", row.names=FALSE)
fread("check.csv", stringsAsFactor=FALSE)

打印屏幕示例:

enter image description here

> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] data.table_1.9.8

loaded via a namespace (and not attached):
[1] tools_3.3.2

最佳答案

刚刚修复。请从开发人员重试。感谢您的报告。

Fixed fread() error occurring for a subset of Windows users: showProgress is not type integer but type logical, #1944 and #1111. Our tests cover this usage (it is just default usage), pass on AppVeyor (Windows), win-builder (Windows) and CRAN's Windows so perhaps it only occurs on a specific and different version of Windows to all those. Thanks to @demydd for reporting. Fixed by using strictly logical type at R level and Rboolean at C level, consistently throughout.

关于r - fread 中的错误(showProgress 不是整数类型,而是类型 'logical'。请报告。),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40890999/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com