Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in fread (showProgress is not type integer but type 'logical'. Please report.) #1944

Closed
demydd opened this issue Nov 30, 2016 · 3 comments
Milestone

Comments

@demydd
Copy link

demydd commented Nov 30, 2016

I have used fread to read data. But the error has arisen:

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

Here is the reproducible script:

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

MichaelChirico commented Nov 30, 2016

Try restarting R and running again. I can't reproduce your example (on v1.9.8):

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

Can you give sessionInfo() if the problem still arises?

@demydd
Copy link
Author

demydd commented Nov 30, 2016

@mattdowle
Copy link
Member

Looks like I'm to blame - sorry. I changed the type of the showProgress global option to logical for fwrite : eb9f7ef

There was a strange problem in the past almost identical : #1111

With fresh eyes I don't see why showProgress wasn't type logical in the first place throughout. Will fix.

In the meantime, passing showProgress=1L or 0L to fread() should work. It's strange it only causes a problem on Windows.

@mattdowle mattdowle added this to the v1.9.10 milestone Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants