开发者

tcltk in portable R

开发者 https://www.devze.com 2023-03-28 03:53 出处:网络
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 开发者_如何学JAVATcl/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.

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

I tried and it works.


See sqldf FAQ #5

0

精彩评论

暂无评论...
验证码 换一张
取 消