我正在尝试将一个Excel文件读入R中。这个文件位于当前工作目录下,具体如下:
> list.files()
[1] "Keuren_Op_Afspraak.xlsx"
我安装了XLConnect,并正在进行以下操作:
library(XLConnect)
demoExcelFile <- system.file("Keuren_Op_Afspraak.xlsx", package = "XLConnect")
wb <- loadWorkbook(demoExcelFile)
但是这个操作会让我出现错误:
Error: FileNotFoundException (Java): File '' could not be found - you may specify to automatically create the file if not existing.
但我不明白这是从哪里来的。有什么想法吗?