[英]Error: .onLoad failed in loadNamespace() for 'tcltk', details:
I have Archlinux and I try to run install.packages("zoo")
and I get the following error message : 我有Archlinux,我尝试运行install.packages("zoo")
并收到以下错误消息:
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 错误:.onLoad在'tcltk'的loadNamespace()中失败,详细信息:调用:dyn.load(file,DLLpath = DLLpath,...)错误:无法加载共享对象'/ usr / lib / R / library / tcltk /libs/tcltk.so':libtk8.6.so:无法打开共享对象文件:没有这样的文件或目录
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' 错误:.onLoad在'tcltk'的loadNamespace()中失败,详细信息:调用:dyn.load(file,DLLpath = DLLpath,...)错误:无法加载共享对象'/ usr / lib / R / library / tcltk /libs/tcltk.so:libtk8.6.so:无法打开共享对象文件:没有这样的文件或目录错误:'tcltk'的程序包或名称空间加载失败
Any idea on how to fix this problem ? 关于如何解决此问题的任何想法吗?
Archlinux offers the needed package your system is searching for. Archlinux提供了系统正在搜索的所需软件包。
tcltk
in R via install.packages("tcltk")
. 随后通过install.packages("tcltk")
在R中安装tcltk
。 zoo
completely: install.packages("zoo")
. 现在,您可以完全安装软件包zoo
: install.packages("zoo")
。 This should solve your problem. 这应该可以解决您的问题。
In my case, the mirror should be selected first. 就我而言,应该首先选择镜子。 So if you see "please select a cran mirror for use in this session", use chooseCRANmirror()
. 因此,如果看到“请选择要在此会话中使用的cran镜像”,请使用chooseCRANmirror()
。 This works for me. 这对我有用。 The error only happens in the console, not in Rstudio. 该错误仅发生在控制台中,而不发生在Rstudio中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.