错误:“tcltk"的 loadNamespace() 中的 .onLoad 失败,详细信息: [英] Error: .onLoad failed in loadNamespace() for 'tcltk', details:

查看:53
本文介绍了错误:“tcltk"的 loadNamespace() 中的 .onLoad 失败,详细信息:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 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 提供了您的系统正在搜索的所需软件包.

  1. 在您的系统上安装这个
  2. 随后通过 install.packages("tcltk") 在 R 中安装 tcltk.
  3. 现在您可以完全安装包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.

  1. Install this package on your system
  2. Subsequent install tcltk in R via install.packages("tcltk").
  3. Now you are able to install the package zoo completely: install.packages("zoo").

This should solve your problem.

这篇关于错误:“tcltk"的 loadNamespace() 中的 .onLoad 失败,详细信息:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆