I tried this command and a "+" appear, so I tried this one:
install.packages("RMySQL", lib="/my/own/R-packages/")
then selected a CRAN mirror, a lot of checks were performed and I got this configuration error:
could not find the MySQL installation include and/or library
directories. Manually specify the location of the MySQL
libraries and the header files and re-run R CMD INSTALL.
INSTRUCTIONS:
1. Define and export the 2 shell variables PKG_CPPFLAGS and
PKG_LIBS to include the directory for header files (*.h)
and libraries, for example (using Bourne shell syntax):
export PKG_CPPFLAGS="-I<MySQL-include-dir>" ----> **How I get this information of MySQL directory?**
export PKG_LIBS="-L<MySQL-lib-dir> -lmysqlclient"
Re-run the R INSTALL command:
R CMD INSTALL RMySQL_<version>.tar.gz
2. Alternatively, you may pass the configure arguments
--with-mysql-dir=<base-dir> (distribution directory)
or
--with-mysql-inc=<base-inc> (where MySQL header files reside)
--with-mysql-lib=<base-lib> (where MySQL libraries reside)
in the call to R INSTALL --configure-args='...'
</pre>
<pre>
R CMD INSTALL --configure-args='--with-mysql-dir=DIR' RMySQL_<version>.tar.gz
</pre>
<pre>
ERROR: configuration failed for package 'RMySQL'
* removing '/root/R/x86_64-redhat-linux-gnu-library/3.1/RMySQL'
The downloaded source packages are in
'/tmp/RtmpnPMTpK/downloaded_packages'
Warning message:
In install.packages("RMySQL", lib = "/my/own/R-packages/") :
installation of package 'RMySQL' had non-zero exit status
PS: I have root access.
Thanx for help
"dbConnect: Provides a graphical user interface to connect with databases that use MySQL" <- do you really need this package ? RMySQL should be enough.
Yes, sure, you are right, I tried dbConnect too because RMySQL doesn't work, but what I need is the later.
Thanx