错误:“tcltk"的 loadNamespace() 中的 .onLoad 失败,详细信息: [英] Error: .onLoad failed in loadNamespace() for 'tcltk', details:
问题描述
我有 Archlinux 并且我尝试运行 install.packages("zoo")
并且我收到以下错误消息:
错误:.onLoad 在 'tcltk' 的 loadNamespace() 中失败,详细信息:调用:dyn.load(file, DLLpath = DLLpath, ...)错误:无法加载共享对象/usr/lib/R/library/tcltk/libs/tcltk.so":libtk8.6.so:无法打开共享对象文件:没有那个文件或目录
我知道这个网站上已经有人问过这个问题,但我找不到有效的答案.
capabilities("tcltk")# tcltk# 真的图书馆(tcltk)
<块引用>
错误:'tcltk' 的 loadNamespace() 中的 .onLoad 失败,详细信息:调用:dyn.load(file, DLLpath = DLLpath, ...)错误:无法加载共享对象/usr/lib/R/library/tcltk/libs/tcltk.so":libtk8.6.so:无法打开共享对象文件:没有那个文件或目录错误:tcltk"的包或命名空间加载失败
知道如何解决这个问题吗?
Archlinux 提供了您的系统正在搜索的所需软件包.
- 在您的系统上安装这个包
- 随后通过
install.packages("tcltk")
在 R 中安装tcltk
. - 现在您可以完全安装包
zoo
:install.packages("zoo")
.
这应该可以解决您的问题.
I have Archlinux and I try to run install.packages("zoo")
and I get the following error message :
Error: .onLoad failed in loadNamespace() for 'tcltk', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/usr/lib/R/library/tcltk/libs/tcltk.so': libtk8.6.so: cannot open shared object file: No such file or directory
I know this problem has already been asked on this site but I can't find a working answer.
capabilities("tcltk")
# tcltk
# TRUE
library(tcltk)
Error : .onLoad failed in loadNamespace() for 'tcltk', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/usr/lib/R/library/tcltk/libs/tcltk.so': libtk8.6.so: cannot open shared object file: No such file or directory Error: package or namespace load failed for ‘tcltk’
Any idea on how to fix this problem ?
Archlinux offers the needed package your system is searching for.
- Install this package on your system
- Subsequent install
tcltk
in R viainstall.packages("tcltk")
. - Now you are able to install the package
zoo
completely:install.packages("zoo")
.
This should solve your problem.
这篇关于错误:“tcltk"的 loadNamespace() 中的 .onLoad 失败,详细信息:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!