Search code examples
rexcelreadxl

Cannot open file nor connection: "rb" errors while trying to read an excel from the computer


readxl::read_excel("C:/Users/administrador/Documents", 
                   "DataImport_hatchesSDA_marc")

Error in file(con, "rb") : cannot open the connection In addition: Warning message: In file(con, "rb") : cannot open file 'C:/Users/administrador/Documents': Permission denied


Solution

  • As it has been said in the comments, I lacked the path to the particular file, so adding its name after /Documents is what made it work.