2017-08-17 79 views
0

我想在RStudio中使用geoR包(v1.7-5.2)(v1.0.153,在Ubuntu下運行16.04 LTS),但似乎有些Tcl庫需要重新安裝:錯誤:'geoR'的包或名稱空間加載失敗:.onLoad在'tcltk'的loadNamespace()失敗

> 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

嘗試重新安裝geoR與依賴= TRUE。

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

剛剛嘗試過。還是一樣的錯誤。 –

+0

錯誤可能是因爲'tcltk'包。檢查功能() 「tcltk」] –

+0

我得到: '>功能() 「tcltk」]' 'tcltk TRUE' –

相關問題