各位大神,路过的帮帮忙呀,本人初学R软件,然后在导入数据这一关就被卡住了

。我一开始装的是R3.3.1,导入数据比较方便的不是用RODBC, XLConnect 以及xlsx 这三个包嘛,然后我三个都试过,安装可以,使用都不行。换了一个R3.4.2,还是不行,装RODBC的时候提示(附图),装后两个的时候却是提示没有rjava,本来以为这样就可以了,结果又提示 “错误: JAVA_HOME cannot be determined from the Registry” 然后我就屁颠屁颠跑去装JDK了,也按照教程配置好了,结果还是不行!!!即将崩溃!!!希望有路过的大神救救急!附上错误记录
library(RODBC)
> A<-odbcConnectExcel2007('H:/RAPPLY/CH-01/CH-01-05X.xlsx')
Warning messages:
1: In odbcDriverConnect(con, tabQuote = c("[", "]"), ...) :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
2: In odbcDriverConnect(con, tabQuote = c("[", "]"), ...) :
ODBC connection failed
> library(xlsx)
载入需要的程辑包:rJava
Error: package or namespace load failed for ‘rJava’:
loadNamespace()里算'rJava'时.onLoad失败了,详细内容:
调用: fun(libname, pkgname)
错误: JAVA_HOME cannot be determined from the Registry
Error: 无法载入程辑包‘rJava’
> library(rJava)
Error: package or namespace load failed for ‘rJava’:
loadNamespace()里算'rJava'时.onLoad失败了,详细内容:
调用: fun(libname, pkgname)
错误: JAVA_HOME cannot be determined from the Registry