# NOT RUN {
file <- system.file("tests", "test_import.xlsx", package = "xlsx")
wb <- loadWorkbook(file)
sheets <- getSheets(wb)
sheet <- sheets[[2]] # extract the second sheet
# see all the available java methods that you can call
rJava::.jmethods(sheet)
# for example
sheet$getLastRowNum()
# }
Run the code above in your browser using DataLab