Felipe Augusto
Felipe Augusto

Reputation: 8184

I cannot install the package tcltk in R

I'm trying to install the package Rcmdr however it has a dependency on tcltk2 whom has a dependency on tcltk but I cannot install tcltk.

My status:

> capabilities()["tcltk"]
tcltk 
FALSE  

What I've tried:

install.packages("https://cran.r-project.org/src/contrib/Archive/tcltk/tcltk_0.1-1.tar.gz", type="source", repos=NULL)

Returns:

Installing package into ‘/home/felipeaugustox/R/x86_64-pc-linux-gnu-library/3.6’ (as ‘lib’ is unspecified) trying URL 'https://cran.r-project.org/src/contrib/Archive/tcltk/tcltk_0.1-1.tar.gz' Content type 'application/x-gzip' length 5000 bytes ================================================== downloaded 5000 bytes

ERROR: cannot extract package from ‘/tmp/RtmpH9kH6v/downloaded_packages/tcltk_0.1-1.tar.gz’ Warning in install.packages : installation of package ‘/tmp/RtmpH9kH6v/downloaded_packages/tcltk_0.1-1.tar.gz’ had non-zero exit status

What I also tried:

R CMD INSTALL tcltk_0.1-1.tar.gz

Returns:

ERROR: cannot extract package from ‘tcltk_0.1-1.tar.gz’

My setup:

Upvotes: 0

Views: 1518

Answers (1)

IRTFM
IRTFM

Reputation: 263362

This is what one user found successful:

cd ~/Downloads
wget http://mirrors.kernel.org/ubuntu/pool/universe/i/itcl3/itcl3_3.4.3-1_amd64.deb
sudo apt-get install ./itcl3_3.4.3-1_amd64.deb

Upvotes: 0

Related Questions