Persistent "Unknown or uninitialised column" warnings

I ran into this problem rather extensively just now. I installed an updated version of RStudio, but that didn't help. My problem is reproducible, but I can't post a nice short example since the script brings in all sorts of files. However, I did find a fix: At one point, I read in an Excel file using 'read_excel' from 'library(readxl)':

peakdf <- read_excel(path = fl)

If I change that to the following, the problem (which doesn't in any obvious way relate to my 'peakdf') goes away:

peakdf <- as.data.frame(read_excel(path = fl),
stringsAsFactors = FALSE)

So perhaps there is some sort of tibble-related problem?

I hope this ends up being helpful in tracking down the problem.

Eric

1 Like