我正在尝试在RStudio中使用geoR软件包(v1.7-5.2)(v1.0.153,在Ubuntu 16.04 LTS下运行),但似乎需要重新安装一些Tcl库:
> 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.
如果我从命令行启动geoR,那么它就可以正常运行了。
> 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
--------------------------------------------------------------
答案 0 :(得分:1)
尝试使用依赖项= TRUE重新安装 geoR 。
install.packages("geoR",dependencies = TRUE)
library(geoR)