I ran the below code and have been getting this error.
code I ran -
headers <- read.csv(file.choose(), skip = 1, header = F, nrows = 1, as.is = T)