0

I'm trying to run a line of code in R with read.xlsx taken from xlsx package. it used to work fine but something has changed but I'm not sure what.

 df_sheet <- xlsx::read.xlsx(lane_info, sheetIndex = 1, startRow=5 ,colIndex = 1:8,as.data.frame=TRUE, header=TRUE,stringsAsFactors=FALSE) # read first sheet

the Error is:

> Error in .jcall(cell, "I", "getCellType") :    method getCellType with
> signature ()I not found
zx8754
  • 52,746
  • 12
  • 114
  • 209
hamaor
  • 41
  • 1
  • 6
  • does it work with the openxlsx::read.xlsx? https://www.rdocumentation.org/packages/openxlsx/versions/4.2.3/topics/read.xlsx – DPH Nov 04 '20 at 13:13
  • openxlsx::read.xlsx seems to work... is there a way to use xlsx? – hamaor Nov 12 '20 at 11:52

0 Answers0