我正在尝试使用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我找不到这个问题的解决方案,我该如何解决这个问题?
发布于 2016-10-26 02:36:26
来自过去的帖子。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下载预编译的插件。
https://stackoverflow.com/questions/40232917
复制相似问题