When installing this package, directly
Install.packages ("Sqldf") can
But there may be a bit of an episode where there are errors:
Error:. OnLoad failed in Loadnamespace () for ' TCLTK ', details:
Call:fun (Libname, Pkgname)
ERROR:TCL/TK support isn't available on the This system
Error:package ' TCLTK ' could not being loaded
Error:lazy loading failed for package ' TCLTK2 '
If this is the case, you will need to confirm that the TCLTK package is not installed.
Yum install libx11-devel.x86_64 libxt-devel tcl-devel tk-devel
If there's a leak, it's definitely not going to fit.
In addition, the TCLTK package must exist when installing r, or it will not compile even if you install R after installing TCLTK.
You will need to reinstall the R language at this point in the same location.
Then you can install the SQLDF package.
Installing the SQLDF package in R