Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tktable : could not be found in R

Tags:

r

tcl

tk-toolkit

I try to use tcltk in R, but the package Tktable could not be found.

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

When I install R (r-base-core) all this linux package are installed too :

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

I tried to install manually libtktable2.9, and those packages are automatically installed :

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

I tried the fonction addTclPath in R (with different path, because I dont really understand where is the tcl location...), but nothing changes.

I saw similar posts on few forums but no answer yet.

Any idea?

like image 819
Audrey Bihouée Avatar asked Sep 06 '25 05:09

Audrey Bihouée


2 Answers

http://bioinf.wehi.edu.au/affylmGUI/#testBWTk describes installing 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.

To get Tktable to install on debian, I installed this first

sudo apt-get install tcl-dev tk-dev mesa-common-dev libjpeg-dev libtogl-dev
like image 116
BAMF4bacon Avatar answered Sep 07 '25 21:09

BAMF4bacon


On Ubuntu 18.04, I could just install the package tk-table

sudo apt install tk-table
like image 23
Tristan Avatar answered Sep 07 '25 20:09

Tristan