无法打开文件或连接:尝试从计算机读取 excel 时出现 "rb" 错误
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
正如评论中所说,我缺少特定文件的路径,因此在 /Documents 之后添加它的名称是它起作用的原因。
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
正如评论中所说,我缺少特定文件的路径,因此在 /Documents 之后添加它的名称是它起作用的原因。