I've been using R and Rscript on my Linux CentOS 7 system and everything worked fine for years.
Today I tried to install a package, clusterSim
, but my R environment does not seem to work anymore. Here's the error I get:
install.packages("clusterSim");
--- Please select a CRAN mirror for use in this session --- Warning: failed to download mirrors file (internet routines cannot be loaded); using local file '/home/davide/miniconda3/lib/R/doc/CRAN_mirrors.csv' Error: .onLoad failed in loadNamespace() for 'tcltk', details: call: fun(libname, pkgname) error: Can't find a usable init.tcl in the following directories: /opt/anaconda1anaconda2anaconda3/lib/tcl8.5 ./lib/tcl8.5 ./lib/tcl8.5 ./library ./library ./tcl8.5.18/library ./tcl8.5.18/library
This probably means that Tcl wasn't installed properly.
I tried to install tcl, and I got this message:
sudo yum -y install tcl
Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.mirror.rafal.ca * epel: mirror.math.princeton.edu * extras: mirror2.evolution-host.com * ius: mirror.team-cymru.org * nux-dextop: li.nux.ro * updates: centos.mirror.iweb.ca Package 1:tcl-8.5.13-8.el7.x86_64 already installed and latest version Nothing to do
Any idea on how to solve this problem? Thanks