简体   繁体   English

错误:.onLoad在'tcltk'的loadNamespace()中失败,详细信息:

[英]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提供了系统正在搜索的所需软件包。

  1. Install this package on your system 在系统上安装软件包
  2. Subsequent install tcltk in R via install.packages("tcltk") . 随后通过install.packages("tcltk")在R中安装tcltk
  3. Now you are able to install the package zoo completely: install.packages("zoo") . 现在,您可以完全安装软件包zooinstall.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.

相关问题 错误“.onLoad 在 'tcltk' 的 loadNamespace() 中失败” - Error ".onLoad failed in loadNamespace() for 'tcltk'" 错误:'tcltk' 的 loadNamespace() 中的 .onLoad 失败,详细信息:调用:fun(libname, pkgname) - Error : .onLoad failed in loadNamespace() for 'tcltk', details:call: fun(libname, pkgname) Rcmdr错误:.onLoad在'tcltk'的loadNamespace()中失败 - Rcmdr Error : .onLoad failed in loadNamespace() for 'tcltk' 错误:“ geoR”的程序包或名称空间加载失败:.tcltk的loadNamespace()在.onLoad中失败 - Error: package or namespace load failed for ‘geoR’: .onLoad failed in loadNamespace() for 'tcltk' 'utils' 的 loadNamespace() 中的 onLoad 失败,详细信息 - onLoad failed in loadNamespace() for 'utils', details 错误:.onLoad在'rJava'的loadNamespace()中失败,详细信息在安装软件包时 - Error : .onLoad failed in loadNamespace() for 'rJava', details while installing a package 错误:'rJava' 的 loadNamespace() 中的 .onLoad 失败,详细信息:调用:inDL(x, as.logical(local), as.logical(now), ...) - Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), …) R - 错误:'rJava' 的 loadNamespace() 中的 .onLoad 失败 - R - Error : .onLoad failed in loadNamespace() for 'rJava' 安装包时,.onLoad在'rJava'的loadNamespace()中失败 - .onLoad failed in loadNamespace() for 'rJava' when installing a package 错误:loadNamespace 中“tidyverse”的包或命名空间加载失败 - Error: package or namespace load failed for ‘tidyverse’ in loadNamespace
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM