Error: package or namespace load failed for ‘geoR’: .onLoad failed in loadNamespace() for 'tcltk'

1.1k views Asked by At

I am trying to use geoR package (v1.7-5.2) within RStudio (v1.0.153, running under Ubuntu 16.04 LTS), but it seems that some Tcl library needs to be reinstalled:

> library(geoR)
Error: package or namespace load failed for ‘geoR’:
 .onLoad failed in loadNamespace() for 'tcltk', details:
  call: fun(libname, pkgname)
  error: Can't find a usable init.tcl in the following directories: 
    /builddir/vendor/build/lib/tcl8.6 ./lib/tcl8.6 ./lib/tcl8.6 ./library ./library ./tcl8.6.5/library ./tcl8.6.5/library

This probably means that Tcl wasn't installed properly.

If I start geoR from command line then it starts fine.

> library(geoR)
--------------------------------------------------------------
 Analysis of Geostatistical Data
 For an Introduction to geoR go to http://www.leg.ufpr.br/geoR
 geoR version 1.7-5.2 (built on 2016-05-02) is now loaded
--------------------------------------------------------------
1

There are 1 answers

4
Aleksandr On

Try reinstall geoR with dependencies = TRUE.

install.packages("geoR",dependencies = TRUE) 
library(geoR)