I find openxlsx2 a very interesting package, it's very useful how you can import a workbook keeping styles.
I just wondering if it is a bug or I'm doing something wrong for the very simple task of importing an excel workbook with openxlsx2::wb_load. I just want to import first sheet as in openxlsx::read.xlsx(..., sheet = 1).
According to openxlsx2 documentation sheet: if this is applied, only the selected sheet will be loaded. This can be a numeric, a string or NULL
library(openxlsx2)
> openxlsx2::wb_load("example.xlsx")
A Workbook object.
Worksheets:
Sheets: ES FR UK
Write order: 1, 2, 3
I almost get same result if I do:
> openxlsx2::wb_load("example.xlsx", sheet = 1)
A Workbook object.
Worksheets:
Sheets: ES FR UK
Write order: 1, 2, 3
It still imports all sheets, though data in sheets 2 and 3 has been removed. I want to import only sheet 1.
I have also tried openxlsx2::wb_load("example.xlsx", sheet = "ES") with no result.