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

colClasses=logical is no longer working #2766

Closed
st-pasha opened this issue Apr 18, 2018 · 1 comment
Closed

colClasses=logical is no longer working #2766

st-pasha opened this issue Apr 18, 2018 · 1 comment
Milestone

Comments

@st-pasha
Copy link
Contributor

This appears to be a very similar issue to #2251, which hopefully means that a similar solution can be applied.

> fread("A,B\n1,TRUE", colClasses=c("integer", "logical"))
Error in fread("A,B\n1,TRUE", colClasses = c("integer", "logical")) : 
  Attempt to override column 2 <<B>> of inherent type 'bool8' down to 'bool8' which will lose accuracy. If this was intended, please coerce to the lower type afterwards. Only overrides to a higher type are permitted.
@st-pasha st-pasha added this to the v1.10.6 milestone Apr 18, 2018
@mattdowle mattdowle modified the milestones: v1.11.0, v1.11.2 Apr 29, 2018
@mattdowle
Copy link
Member

I'm not sure when this was fixed, but it's fixed now. I'll add a test.

> fread("A,B\n1,TRUE", colClasses=c("integer", "logical"))
       A      B
   <int> <lgcl>
1:     1   TRUE

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

No branches or pull requests

2 participants