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

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

问题描述

我有Archlinux,尝试运行install.packages("zoo"),并收到以下错误消息:

I have Archlinux and I try to run install.packages("zoo") and I get the following error message :

错误:.onLoad在'tcltk'的loadNamespace()中失败,详细信息: 调用:dyn.load(file,DLLpath = DLLpath,...) 错误:无法加载共享对象'/usr/lib/R/library/tcltk/libs/tcltk.so': libtk8.6.so:无法打开共享库文件:没有这样的文件或目录

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)

错误:.onLoad在'tcltk'的loadNamespace()中失败,详细信息: 调用:dyn.load(file,DLLpath = DLLpath,...) 错误:无法加载共享对象'/usr/lib/R/library/tcltk/libs/tcltk.so': libtk8.6.so:无法打开共享库文件:没有这样的文件或目录 错误:"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提供了系统正在搜索的所需软件包.

Archlinux offers the needed package your system is searching for.

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

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

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