Subset col_types when there are too many; fixes #371 #372
The result is now what I expect, but seems like there should be problems? I don't know how to fix that.
(too_many <- read_csv("v1,v2\n1,2", col_types = "iii")) #> Warning: Unnamed `col_types` should have the same length as `col_names`. #> Using smaller of the two. #> v1 v2 #> 1 1 2 problems(too_many) #>  row col expected actual #> <0 rows> (or 0-length row.names)
Current coverage is 70.08%
@@ master #372 diff @@ ======================================= Files 56 56 Lines 2801 2801 Methods 0 0 Branches 0 0 ======================================= + Hits 1957 1963 +6 + Misses 844 838 -6 Partials 0 0
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.