简体   繁体   English

便携式 R 中的 tcltk

[英]tcltk in portable R

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: 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

I have looked for solutions but most of them suggest me to install R, which is not possible as I am using portable R.我一直在寻找解决方案,但大多数人建议我安装 R,这是不可能的,因为我使用的是便携式 R。

What can I do?我能做些什么? Thanks.谢谢。

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为 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

I tried and it works.我试过了,它有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM