Learning R language, I want to get the data on mysql database through RMySQL, but installing RMySQL often can't be installed successfully at one time, sometimes it will be entangled for a few hours, even a few days, like I got entangled for one night, according to The following steps were successfully installed in the RStudio R (PS: Recommended RStudio Software) language integration development environment. I also found a lot of posts before I installed it successfully on Win7 system.
Steps:
1. Install R-3.0.0 (installation directory: F:\\Program Files\\R\\R-3.0.0)
2. Installation Rtools (installation directory: F:\\Rtools) Rtools download address http://cran.r-project.org/bin/windows/Rtools/(find the corresponding version of Rtools installation) This step is very important, add R and Rtools Directory to the environment variable PATH: F:\\Program Files\\R\\R-3.0.0\\bin\\x64; F:\\Rtools\\bin;F:\\Rtools\\gcc-4.6.3\\bin;
3. Install the RMySQL dependency package "DBI”Open R x64 3.0.0, run install.packages('DBI')
4. Download RMySQLinstall.packages('RMySQL', type='source') installation Procedure prompt "ERROR: configuration failed for package 'RMySQL'". First, remember the package to save the saved directory
5. At F:\\Program Files\\R\\R-3.0.0\\etc Create a file under the folder Renviron.siteMYSQL_HOME="D:/Program Files/MySQL/MySQL Server 5.5" (note that if the path contains spaces, it must be enclosed in double quotes)
6. In D: \\Program Files\\MySQL\\MySQL Server 5.5\\lib folder, create a new folder opt, and copy libmy Sql.dll and libmysql.lib to the opt folder
7. Copy libmysql.dll to D:\\Program Files\\MySQL\\MySQL Server 5.5\\bin
8. Open the command line cmd .exe, enter the following command to install: R CMD INSTALL "< package download directory>/RMySQL_0.9-3.tar.gz"
to install successfully.
Installation failure Possible reasons: 1. Check if the MYSQL installation directory contains spaces. For example, the contents of the Renviron.site file must be quoted in double quotes. 2. Check if the bin directory of R and RTools is already included in the environment variable PATH, if no need to manually add it. 3. Run install.packages('RMySQL', type='source') directly. The installation is unsuccessful. You need to use R CMD INSTALL to install it on the command line.
How to turn off the sensor function of the win7 system: 1. In the win7, use the keyboard combinatio
The Windows Auto Maintenance function performs system security scans, system diagnostics, software u
According to the PCWorld website, for todays criminals, the Internet has become their crime scene. C
What is netcfg.hlp? It is actually a system help file, especially when the system is connected to br
How to customize the shape of the win7 start icon?
How to solve the problem of automatic restart after Win7 repetitive sleep?
WinXP system installation IE8 failure processing method [Graphic tutorial]
Win7 reduces boot time by disabling nvcpl service items to increase boot speed
Win10 official version of the two uninstall methods of the software downloaded in the app store
How to charge Win10? Win10 free upgrade is not limited to
How does the Win8 system clean up the disk? Win8 system clean disk two ways
How to set the eye color control eye color parameters of win7/8/10
Win10 system can not open the solution to the software prompt file loss
Windows 7 system window automatically maximizes
Windows 7 Tips: Speed up system boot and shutdown speed
Win10 dual graphics can not switch
How to compress the size of Excel image? Excel image compression method
Snooping Win8.1 RTM from the Build 9471 leaked version
The secret to creating a stable hard disk for Win2003
Microsoft changes Windows 7 development process