简体   繁体   English

错误:“gt”的包或命名空间加载失败:“命名空间:fastmap”未导出对象“faststack”

[英]Error: package or namespace load failed for ‘gt’: object ‘faststack’ is not exported by 'namespace:fastmap'

I'm getting that error message when running我在运行时收到该错误消息

library(gt) 

You probably have an older version of fastmap .您可能有旧版本的fastmap Run update.packages("fastmap") .运行update.packages("fastmap")

EDITED to add: A comment said that update.packages didn't work, but a new install did.编辑添加:评论说update.packages不起作用,但新安装起作用了。 A possible cause for weird behaviour like this is that you have two R libraries installed: a user library and a system library.出现这种奇怪行为的一个可能原因是您安装了两个 R 库:一个用户库和一个系统库。 They can each have different versions of the same package.它们每个都可以有相同包的不同版本。 update.packages() sees the newer one, but the code triggering the error uses the older one. update.packages()看到的是较新的,但触发错误的代码使用的是较旧的。 .libPaths() will show the currently visible libraries, eg on my Mac I currently see .libPaths()将显示当前可见的库,例如在我目前看到的 Mac 上

> .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library"

This is the system library.这是系统库。 If I install a package somewhere else I'll probably see that path listed as well, but not necessarily if I restart R in another session.如果我在其他地方安装了一个包,我可能也会看到列出的路径,但如果我在另一个会话中重新启动 R,则不一定。 This can lead to very confusing behaviour.这会导致非常混乱的行为。

One way to get into such a mess is to install some packages while running with admin privileges, and others without.陷入这种混乱的一种方法是在以管理员权限运行时安装一些软件包,而其他则没有。 The admin-installed packages will probably go into the system library, while the user-installed packages will go into a user library.管理员安装的软件包可能会进入系统库,而用户安装的软件包将进入用户库。

I just had to reinstall everything - R, and R Studio using the latest updates from CRAN.我只需要使用 CRAN 的最新更新重新安装所有内容 - R 和 R Studio。 Then everything was fine.然后一切都很好。

有同样的问题 - 我通过更新我的所有软件包解决了它。

install.packages("fastmap")一眨眼就解决了我的问题,谢谢

You might get away with uninstalling fastmap, then reinstalling it.您可能会卸载 fastmap,然后重新安装它。 Rather than reinstalling everything.而不是重新安装所有东西。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:'arulesViz'的包或名称空间加载失败:对象'cividis'不会被'namespace:viridisLite'导出 - Error: package or namespace load failed for ‘arulesViz’: object ‘cividis’ is not exported by 'namespace:viridisLite' 错误:package 或“tidyverse”的命名空间加载失败:object “relocate”未由“namespace:dplyr”导出 - Error: package or namespace load failed for ‘tidyverse’: object ‘relocate’ is not exported by 'namespace:dplyr' 错误:包或名称空间加载失败,找不到对象… - Error: package or namespace load failed, object … not found 错误:程序包或命名空间加载失败 - Error: Package or namespace load failed 加载 package ggh4x 时出错:错误:package 或名称空间加载失败 'ggh4x':object 'cli_abort'未导出 - loading the package ggh4x in error: Error: package or namespace load failed for ‘ggh4x’: object ‘cli_abort’ is not exported by 'namespace:cli' 如何修复R中的“错误:'名称空间:dplyr'未导出对象'as_tibble'错误:包'BLANK'的延迟加载失败” - How to fix “Error : object ‘as_tibble’ is not exported by 'namespace:dplyr' ERROR: lazy loading failed for package ‘BLANK’” in R 错误:“treesnip”的包或命名空间加载失败 - Error: package or namespace load failed for 'treesnip' 错误:“Seurat”的 package 或命名空间加载失败? - Error: package or namespace load failed for ‘Seurat’? 错误:“rjags”的 package 或命名空间加载失败 - Error: package or namespace load failed for ‘rjags’ 错误:XLConnect 的 package 或命名空间加载失败 - Error: package or namespace load failed for XLConnect
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM