我想在运行 Windows 7 的计算机上安装 RMySQL 包。在包网站http://cran.r-project.org/web/packages/RMySQL/index.html上,似乎 Windows 包版本没有'不存在...我试图理解自述文件,但我不能。
有人能告诉我如何正确安装这个包吗?
我尝试了以下代码
install.packages('RMySQL', type='source')
我收到以下消息:
Warning in install.packages :
package ‘RMySQL’ is not available (for R version 3.0.0)
Installing package into ‘C:/Users/XXXXX/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/RMySQL_0.9-3.tar.gz'
Content type 'application/x-gzip' length 165363 bytes (161 Kb)
opened URL
downloaded 161 Kb
* installing *source* package 'RMySQL' ...
** package 'RMySQL' correctement décompressé et sommes MD5 vérifiées
ERROR: configuration failed for package 'RMySQL'
* removing 'C:/Users/XXXXX/Documents/R/win-library/3.0/RMySQL'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-30~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\XXXXX\Documents\R\win-library\3.0" C:\Users\XXXXX\AppData\Local\Temp\Rtmpo9RLF3/downloaded_packages/RMySQL_0.9-3.tar.gz' had status 1
Warning in install.packages :
installation of package ‘RMySQL’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\XXXXX\AppData\Local\Temp\Rtmpo9RLF3\downloaded_packages’
RStudio 的 Packages 窗口中什么也没有出现...谢谢您的帮助。