我试图在RStudio (v1.0.153,在Ubuntu16.04LTS下运行)中使用RStudio包(v1.7-5.2),但似乎需要重新安装一些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
--------------------------------------------------------------发布于 2017-08-17 11:26:06
尝试用依赖项= TRUE重新安装geoR。
install.packages("geoR",dependencies = TRUE)
library(geoR)https://stackoverflow.com/questions/45733197
复制相似问题