我正在尝试使用install.packages("ROracle")
安装ROracle包,但每次收到此消息时"Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘ROracle’"
These will not be installed
我无法找到解决方案,我该如何解决这个问题?
答案 0 :(得分:8)
来自过去的帖子。 How to install ROracle package on Windows 7?
从oracle下载二进制文件:http://www.oracle.com/technetwork/database/database-technologies/r/roracle/downloads/index.html
在r中运行以下命令,替换文件路径:
setwd('xxxxx') # set to path of download
install.packages('ROracle_1.2-1.zip', repos = NULL)
Then load the library and use the package - you may have to change XXXX to whatever is in your TNS Names:
library('ROracle')
drv <- dbDriver("Oracle")
con <- dbConnect(drv, "USER GOES HERE", "PASSWORD GOES HERE", dbname='XXX')
test connection:
dbReadTable(con, 'DUAL')
能够从源代码安装并直接从oracle下载预编译的插件
答案 1 :(得分:0)