-
Notifications
You must be signed in to change notification settings - Fork 289
Description
Hi,
I'm in the early stages of trying to track this down - asking in case it is 'known' or anyone has any ideas before I spend too long on hunting it down.
I installed R 3.5.0 today and reinstalled packages along with it. I'm using readr 1.2.0, tibble 1.4.2.9001, rlang 0.2.0.9001.
My code sits in a package for loading my dataset. The code is 'known working' on my 3.4.4 machine and has been for some time so it looks like a regression which has occurred somewhere.
I've narrowed it down to calling read_csv which is generating the warnings (>50 warnings).
I'm using defined import columns. Because the column list is large, I'm managing it by splitting it into two definitions (columnTypes and followupColumnTypes), and then calling read_csv:
columnTypes <- readr::cols(
ProClinV1Id = readr::col_integer(),
PatientId = readr::col_integer(),
TeamCode = readr::col_character())
followupColumnTypes <- readr::cols(
LockedS8 = readr::col_skip(),
LockedS8DateTime = readr::col_skip(),
LockedS8UserName = readr::col_skip(),
S8Status = readr::col_skip(),
S8FollowUp = readr::col_factor(c('Y', 'N', 'NB', 'ND', NA)),
S8FollowUpType = readr::col_factor(c('IP', 'T', 'O', 'P', NA)))
importColumns <- columnTypes
importColumns$cols <- c(columnTypes$cols,
followupColumnTypes$cols)
importedData <- readr::read_csv(filename,
col_names = TRUE,
col_types = importColumns)
I'm getting >50 warnings of:
In read_tokens_(data, tokenizer, col_specs, col_names, ... :
length of NULL cannot be changed
Haven't yet managed to distill the example down further into a reprex - if it doesn't ring any bells with anyone I'll try to do that.
The imported data itself seems fine so whatever is going on isn't affecting the output (but is screwing up my debug as I can't see the wood for the trees! I can workaround by disabling warnings on input - but that is ignoring the issue really!)
The only major R thing I can think of is the byte-compiling by default causing a problem somewhere.