0
votes

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:

  • R version 3.6.1
  • Ubuntu 18.06
1
tcltk is a system package. Look up on AskUbuntu how to install it.IRTFM
@IRTFM I installed with sudo apt-get install tcl8.5-dev tk8.5-devFelipe Augusto
In that case perhaps using a binary install of the R package, making sure that it is matched to R 3.6.x. See cran.r-project.org/bin/linux/ubuntuIRTFM
Isn't that what I tried? R CMD INSTALL tcltk_0.1-1.tar.gzFelipe Augusto
@user20650 After that: r-cran-tcltk2 is already the newest version (1.2-11-1.1).Felipe Augusto

1 Answers

0
votes

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