便携式R中的tcltk

问题描述:

我正在使用便携式R ,我想尝试一下sqldf包,我可以加载sqldf程序包,但运行sql语句并显示以下消息:

I am using portable R and I want to try the sqldf package a bit, I can load the sqldf package, but running a sql statement and gives me this message:

> sqldf("select * from BOD where Time > 4")
Loading required package: tcltk
Loading Tcl/Tk interface ...Error : .onLoad failed in loadNamespace() for 'tcltk', details:
  call: NULL
  error: Tcl/Tk support files were not installed
Error: require(tcltk) is not TRUE

我一直在寻找解决方案,但是大多数建议我安装R,这是不可能的,因为我使用的是便携式R.

I have looked for solutions but most of them suggest me to install R, which is not possible as I am using portable R.

我该怎么办?谢谢.

为Windows安装R 2.13.1,将~/R-2.13.1/Tcl文件夹复制到~\R-Portable\App\R-2.11.1~/R-2.13.1/library/tcltk文件夹到~/R-Portable/App/Data/library

install R 2.13.1 for Windows, copy ~/R-2.13.1/Tcl folder to ~\R-Portable\App\R-2.11.1 and ~/R-2.13.1/library/tcltk folder to ~/R-Portable/App/Data/library

我尝试过并且有效.