安装包安装完了
输入下面
install.packages("RODBC");
library(RODBC);
connect2007<-odbcConnectExcel2007("2.xlsx");
弹出
结果
> connect2007<-odbcConnectExcel2007("2.xlsx");
Warning messages:
1: In odbcDriverConnect(con, tabQuote = c("[", "]"), ...) :
[RODBC] ERROR: state IM004, code 0, message [Microsoft][ODBC 驱动程序管理器] 驱动程序的 SQLAllocHandle on SQL_HANDLE_ENV 失败
2: In odbcDriverConnect(con, tabQuote = c("[", "]"), ...) :
ODBC connection failed