我正在尝试使用安装 ROracle 软件包,install.packages("ROracle")
但每次收到此消息时"Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘ROracle’"
These will not be installed
我无法找到解决方案,我该如何解决这个问题?
我正在尝试使用安装 ROracle 软件包,install.packages("ROracle")
但每次收到此消息时"Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘ROracle’"
These will not be installed
我无法找到解决方案,我该如何解决这个问题?
从过去的帖子。 如何在 Windows 7 上安装 ROracle 包?
从 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 下载预编译的插件