jverzani / gWidgets2tcltk

An R package implementing the gWidgets2 API for the tcltk package
7 stars 2 forks source link

[macOS] Error in tests on 10.6: `X connection to /tmp/launch-AmJfqT/:0 broken (explicit kill or server shutdown)` #18

Open barracuda156 opened 1 year ago

barracuda156 commented 1 year ago

@jverzani I am pretty sure this is a problem on my side and not a bug in the package. But maybe you know why this may happen?

R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.0.0d2 (32-bit)

> library(testthat)
> library(gWidgets2)
Loading required package: digest
> options(guiToolkit="tcltk")
> 
> f <- list.files(system.file("tests", package="gWidgets2"), full=T)
> f <- Filter(function(x) !grepl("README", x), f)
> f <- Filter(function(x) !grepl("html", x), f)
> ## issues
> f <- Filter(function(x) !grepl("df.R", x), f)
> f <- Filter(function(x) !grepl("text.R", x), f)
> f <- Filter(function(x) !grepl("tree.R", x), f)
> 
> sapply(f, function(i) {
+   message("testing ", i)
+   source(i)
+ })
testing /opt/local/Library/Frameworks/R.framework/Versions/4.3/Resources/library/gWidgets2/tests/button.R
Loading required package: gWidgets2tcltk
Loading required package: memoise
Loading required package: tcltk
X connection to /tmp/launch-AmJfqT/:0 broken (explicit kill or server shutdown).
jverzani commented 1 year ago

Wow, no idea. Does just loading the tcltk package give the same issue?

barracuda156 commented 1 year ago

No, it loads normally:

36-117% /opt/local/bin/r

R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.0.0d2 (32-bit)

> library(tcltk)
>