简体   繁体   English

无法解决 package 或 R 的命名空间加载失败“稍后”

[英]Can't solve package or namespace load failed for R ‘later’

I am using Rstudio to load the package "later" running into the following error:我正在使用 Rstudio 加载 package “稍后”遇到以下错误:

library(later)
Fehler: package or namespace load failed for ‘later’:
 .onLoad in loadNamespace() für 'later' fehlgeschlagen, Details:
  Aufruf: createCallbackRegistry(id, parent_id)
  Fehler: Can't create event loop 0 because it already exists.

Loading the package using the RGUI works fine.使用 RGUI 加载 package 工作正常。 Any suggestions what is causing the problem?任何建议是什么导致了问题?

Furthermore, loading the package seems to work when I wait a couple of minutes after opening Rstudio.此外,当我在打开 Rstudio 后等待几分钟时,加载 package 似乎可以工作。

I do not understand what kind of event loop might already exist.我不明白可能已经存在什么样的事件循环。

It might be noteworthy that this problem seem to occur, when I work remote.值得注意的是,当我远程工作时,似乎会出现这个问题。

> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252 LC_NUMERIC=C                    LC_TIME=German_Germany.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] later_1.3.0

You get the message you saw if you try to run the later:::.onLoad function twice.如果您尝试运行later:::.onLoad function 两次,则会收到您看到的消息。 That shouldn't happen normally, but it might happen if you load it, unload it, and load it again.这通常不应该发生,但是如果您加载它,卸载它并再次加载它,它可能会发生。

Given your comment that it works if you wait a couple of minutes, I'd guess that RStudio is loading it then unloading it, but there's some delay in the full unloading.鉴于您的评论说,如果您等待几分钟,它会起作用,我猜想 RStudio 正在加载它然后卸载它,但是完全卸载有一些延迟。 I don't know if there's any way to affect this.不知道有没有办法影响这个。

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

相关问题 从 GitHub 加载 R package 时出现“包或命名空间加载失败”错误 - "package or namespace load failed" error in loading R package from GitHub 'sf'(R包)的命名空间加载失败,无法加载共享对象 - namespace load failed for ‘sf’ (R package) , unable to load shared object PowerBI Desktop 和 R 错误:“ggplot2”的包或命名空间加载失败 - PowerBI Desktop and R Error: package or namespace load failed for 'ggplot2' 运行 R Markdown '包或命名空间加载失败'时出现 tidyverse 错误 - tidyverse error while running R Markdown 'package or namespace load failed' r编程-loadnamespace中的错误-包或名称空间加载失败 - r programming - error in loadnamespace - package or namespace load failed “ SequentialTranches”的包或名称空间加载失败 - package or namespace load failed for 'SequentialTranches' 错误:程序包或命名空间加载失败 - Error: Package or namespace load failed R:“mxnet”的命名空间加载失败:package“mxnet”是在 R 4.0.0 之前安装的:请重新安装它 - R: namespace load failed for ‘mxnet’: package ‘mxnet’ was installed before R 4.0.0: please re-install it 无法加载geoR软件包(R,library()) - Can't load geoR package (R, library()) 无法在 r 工作室中加载 package kknn - can't load package kknn in r studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM