You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following bug when I try to import any xlsx file with readxl = FALSE and the rows parameter.
Example:
dat <- data.frame(x = 1:20, y = 21:40)
export(dat, "dat.xlsx")
import(file = "dat.xlsx", readxl = FALSE, rows = 1:10)
# Error in read.xlsx.default(rows = ..2, xlsxFile = "dat.xlsx") :
# the ... list does not contain 2 elements
However, if the rows parameter comes before readxl then it works: import(file = "dat.xlsx", rows = 1:10, readxl = FALSE)
And directly using the function also works: openxlsx::read.xlsx("dat.xlsx", rows = 1:10)
If it helps, this only happened recently because I have this in code that I run regularly. It was only when I updated my packages a few days ago that this started to crash in this way.
Thanks.
The text was updated successfully, but these errors were encountered:
I am getting the following bug when I try to import any
xlsx
file withreadxl = FALSE
and therows
parameter.Example:
However, if the
rows
parameter comes beforereadxl
then it works:import(file = "dat.xlsx", rows = 1:10, readxl = FALSE)
And directly using the function also works:
openxlsx::read.xlsx("dat.xlsx", rows = 1:10)
If it helps, this only happened recently because I have this in code that I run regularly. It was only when I updated my packages a few days ago that this started to crash in this way.
Thanks.
The text was updated successfully, but these errors were encountered: