gpt4 book ai didi

roracle - 如何安装ROracle包?

转载 作者:行者123 更新时间:2023-12-02 21:03:32 26 4
gpt4 key购买 nike

我正在尝试使用 install.packages("ROracle") 安装 ROracle 软件包,但每次我收到此消息 “软件包仅以源代码形式提供,并且可能需要C/C++/Fortran 编译:'ROracle'"

These will not be installed

我无法找到解决方案,我该如何解决这个问题?

最佳答案

来自过去的帖子。 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 下载预编译的插件

关于roracle - 如何安装ROracle包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40232917/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com