Can you help me find out what I'm missing?
I want to convert the type of a column a. When I specify the type I want, I get a warning suggesting that the name a in my tibble does not match the name a in my column-type specification.
I've seen some issues related to this topic, but they are closed and suggest there should be no bug.
library(readr)
# Silent
type_convert(tibble::tibble(a = 1), col_types = cols())
#> # A tibble: 1 x 1
#> a
#> <dbl>
#> 1 1
# Why this warning?
# (I expect no warning because name of the column (`a`) does match).
type_convert(tibble::tibble(a = 1), col_types = cols(a = col_integer()))
#> Warning: The following named parsers don't match the column names: a
#> # A tibble: 1 x 1
#> a
#> <dbl>
#> 1 1
type_convert(tibble::tibble(a = 1), col_types = cols(a = "i"))
#> Warning: The following named parsers don't match the column names: a
#> # A tibble: 1 x 1
#> a
#> <dbl>
#> 1 1
Created on 2018-10-02 by the reprex package (v0.2.1)