error while reading xlsx files

I am trying to read xlsx files belongs to path but sometimes it works perfectly and sometimes it gives error .
what can be a reason ....???

my_file <- read_xlsx(my_path, sheet = 1, col_names = T, col_types = "text", trim_ws = F, na = "",.name_repair = "minimal")


Error in read_xlsx(my_path, sheet = 1, col_names = T, col_types = "text",  : 
  unused arguments (sheet = 1, col_names = T, col_types = "text", trim_ws = F, na = "", .name_repair = "minimal")

Hard to say without a reproducible example. Is it possible you overload read_excel with another package or your own code?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.