gpt4 book ai didi

mysql - 如何在 Windows 中使用 RMySQL?

转载 作者:可可西里 更新时间:2023-11-01 06:30:34 25 4
gpt4 key购买 nike

我尝试使用 RMySQL 包,但在执行以下操作时出现此错误:

install.packages('RMySQL')

Warning in install.packages :
package ‘RMySQL’ is not available (for R version 2.14.2)

如何将 MySQL 与 R 结合使用?

谢谢!

最佳答案

RMySQL 包没有可用的 Windows 二进制文件。这意味着您必须从源代码安装此包并自行构建。

CRAN RMySql页面你会注意到没有可用的二进制文件,链接到 Pre-compiled binary packages for R-2.14.x for Windows

从这个页面:

Packages related to many database system must be linked to the exact 
version of the database system the user has installed, hence it does
not make sense to provide binaries for packages
RMySQL, ROracle, ROracleUI,
although it is possible to install such packages from sources by
install.packages('packagename', type='source')
after reading the manual 'R Installation and Administration'.

因此,请阅读手册,尤其是 R Installation and Administration ,安装 RTools,然后使用:

install.packages('RMySQL', type='source')

关于mysql - 如何在 Windows 中使用 RMySQL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9748600/

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