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

Comments

Projects
None yet
3 participants
@demydd

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

This comment has been minimized.

Show comment
Hide comment
@MichaelChirico

MichaelChirico Nov 30, 2016

Contributor

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?

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@mattdowle

This comment has been minimized.

Show comment
Hide comment
@mattdowle

mattdowle Nov 30, 2016

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.

Member

mattdowle commented Nov 30, 2016

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

@mattdowle mattdowle closed this in eb45306 Nov 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment