path <- system.file("extdata", "Diamonds.xlsx", package = "bulkreadr", mustWork = TRUE)
read_excel_workbook(path = path, .id = "Year")
# Column types mismatch error --------------------------------------
# If the `read_excel_workbook()` function complains about a data type mismatch,
# then set the `col_types` argument to `"text"`.
# This will make all the column types in the resulting DataFrame be characters.
Run the code above in your browser using DataLab