write_xlsx(all_trips, "trips.xlsx") Error: Error in libxlsxwriter: 'Worksheet row or column index out of range.'

write_xlsx(all_trips, "trips.xlsx") Error: Error in libxlsxwriter: 'Worksheet row or column index out of range.'

有谁知道如何解决这个错误?

语言:R

我想将文件导出到 xlsx 以在 Tableau 中使用 Public 但遇到错误

write_xlsx(all_trips, "trips.xlsx")

Error: Error in libxlsxwriter: 'Worksheet row or column index out of range.'

可能文件太大了?

str(all_trips) #See list of columns and data types (numeric, character, etc)
spec_tbl_df[,13] [3,574,524 x 13]

(S3:spec_tbl_df/tbl_df/tbl/data.frame)

问题是数据框有 300 万行,Excel 仅支持 100 万行(或具体为 1,048,576 行),参见 Excel's limits