r-lib / later

Schedule an R function or formula to run after a specified period of time.
https://r-lib.github.io/later
Other
141 stars 28 forks source link

Loading error #166

Closed MallerBeach closed 2 years ago

MallerBeach commented 2 years ago

I can't figure out what causes the following issue loading the later-package in Rstudio. Using the RGui everything works fine. Reinstalling the package does not help. Any suggestions? I do not understand how an event can exist?

This error seems only to occur directly after opening R-studio.

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.
wch commented 2 years ago

That's very strange. Can you provide the output of sessioninfo::session_info() when you start a new R session? (You may need to install the sessioninfo package first.)

MallerBeach commented 2 years ago

@wch Thank you for your comment! Opening the RGui running later:::.onLoad() throws the error as well, while running library(later) does not throw an error in the RGui.

This error only seems to occur within a specific R-project of mine.

> sessioninfo::session_info()
- Session info ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value
 version  R version 4.0.3 (2020-10-10)
 os       Windows 10 x64 (build 19044)
 system   x86_64, mingw32
 ui       RStudio
 language (EN)
 collate  German_Germany.1252
 ctype    German_Germany.1252
 tz       Europe/Berlin
 date     2022-09-22
 rstudio  1.3.1093 Apricot Nasturtium (desktop)
 pandoc   2.7.3 @ C:/Program Files/RStudio/bin/pandoc/ (via rmarkdown)

- Packages -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 package      * version    date (UTC) lib source
 ada            2.0-5      2016-05-13 [1] CRAN (R 4.0.5)
 bit            4.0.4      2020-08-04 [1] CRAN (R 4.0.5)
 bit64          4.0.5      2020-08-30 [1] CRAN (R 4.0.5)
 class          7.3-17     2020-04-26 [2] CRAN (R 4.0.3)
 cli            3.3.0      2022-04-25 [1] CRAN (R 4.0.3)
 codetools      0.2-16     2018-12-24 [2] CRAN (R 4.0.3)
 DBI            1.1.3      2022-06-18 [1] CRAN (R 4.0.3)
 digest         0.6.29     2021-12-01 [1] CRAN (R 4.0.5)
 e1071          1.7-9      2021-09-16 [1] CRAN (R 4.0.5)
 evaluate       0.15       2022-02-18 [1] CRAN (R 4.0.5)
 fastmap        1.1.0      2021-01-25 [1] CRAN (R 4.0.5)
 future         1.26.1     2022-05-27 [1] CRAN (R 4.0.3)
 future.apply   1.9.0      2022-04-25 [1] CRAN (R 4.0.3)
 globals        0.15.1     2022-06-24 [1] CRAN (R 4.0.3)
 gtable         0.3.0      2019-03-25 [1] CRAN (R 4.0.5)
 htmltools      0.5.2      2021-08-25 [1] CRAN (R 4.0.5)
 httr           1.4.3      2022-05-04 [1] CRAN (R 4.0.3)
 ipred          0.9-13     2022-06-02 [1] CRAN (R 4.0.3)
 knitr          1.31       2021-01-27 [1] CRAN (R 4.0.5)
 lattice        0.20-41    2020-04-02 [2] CRAN (R 4.0.3)
 lava           1.6.10     2021-09-02 [1] CRAN (R 4.0.5)
 listenv        0.8.0      2019-12-05 [1] CRAN (R 4.0.5)
 MASS           7.3-53     2020-09-09 [2] CRAN (R 4.0.3)
 Matrix         1.2-18     2019-11-27 [2] CRAN (R 4.0.3)
 nnet           7.3-14     2020-04-26 [2] CRAN (R 4.0.3)
 parallelly     1.32.0     2022-06-07 [1] CRAN (R 4.0.3)
 prodlim        2019.11.13 2019-11-17 [1] CRAN (R 4.0.5)
 proxy          0.4-27     2022-06-09 [1] CRAN (R 4.0.3)
 R6             2.5.1      2021-08-19 [1] CRAN (R 4.0.5)
 Rcpp           1.0.9      2022-07-08 [1] CRAN (R 4.0.3)
 rlang          1.0.4      2022-07-12 [1] CRAN (R 4.0.3)
 rmarkdown      2.14       2022-04-25 [1] CRAN (R 4.0.3)
 rpart          4.1-15     2019-04-12 [2] CRAN (R 4.0.3)
 rstudioapi     0.13       2020-11-12 [1] CRAN (R 4.0.5)
 runner         0.4.1      2021-10-03 [1] CRAN (R 4.0.5)
 sessioninfo    1.2.2      2021-12-06 [1] CRAN (R 4.0.5)
 survival       3.2-7      2020-09-28 [2] CRAN (R 4.0.3)
 tinytex        0.31       2021-03-30 [1] CRAN (R 4.0.5)
 xfun           0.22       2021-03-11 [1] CRAN (R 4.0.5)
 yaml           2.3.5      2022-02-21 [1] CRAN (R 4.0.5)

 [1] H:/R/win-library/4.0
 [2] C:/Program Files/R/R-4.0.3/library