tclRequire("Tktable") [1] -6ren">
gpt4 book ai didi

r - Tk 表 : could not be found in R

转载 作者:行者123 更新时间:2023-12-03 19:20:32 25 4
gpt4 key购买 nike

我尝试在 R 中使用 tcltk,但找不到包 Tktable。

> library("tcltk")
Loading Tcl/Tk... OK
> tclRequire("Tktable")
[1] FALSE
Warning :
In tclRequire("Tktable") : the package Tcl 'Tktable' is not found

当我安装 R (r-base-core) 时,所有这些 linux 包也被安装了:

tcl                     install
tcl-dev install
tcl8.5 install
tcl8.5-dev install
tcllib install
tk install
tk-dev install
tk8.5 install
tk8.5-dev install
tklib install

我尝试手动安装 libtktable2.9,然后自动安装了那些包:

libtktable2.9:i386          install
tk8.4:i386 install
tcl8.4:i386 install

我尝试了 R 中的函数 addTclPath (使用不同的路径,因为我真的不明白 tcl 位置在哪里......),但没有任何变化。

我在几个论坛上看到了类似的帖子,但还没有答案。

有什么想法吗?

最佳答案

http://bioinf.wehi.edu.au/affylmGUI/#testBWTk描述安装 Tktable。

To install Tktable download from http://tktable.sourceforge.net. From this site, select "File Distributions, select the "tktable" link, select the latest version (currently 2.10), then select the tar.gz file (currently "Tktable2.10.tar.gz"). Save it to a suitable location, unzip and untar it (Example command is "tar zxf Tktable2.10.tar.gz"). look in the Tktable directory and read the README.txt file installation instructions.

为了让 Tktable 安装在 debian 上,我先安装了这个

sudo apt-get install tcl-dev tk-dev mesa-common-dev libjpeg-dev libtogl-dev

关于r - Tk 表 : could not be found in R,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13875747/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com