[Rd] library(tcltk) v. SIGPIPE BUG (?!?)

Cook, Malcolm MEC at stowers.org
Tue Dec 11 21:14:44 CET 2012

Hi R-devel, tcltk devel, and sqldf devel,

The transcript below shows how loading the tcl/tk library in under R causes subprocesses to ignore SIGPIPE.

I am including the developer of the (wonderful) sqldf package since it requires tcltk and you might like to make this dependence optional to the user (at least until this is fixed in tcltk).

Am I mistaken in calling this a 'bug'?

Any insights appreciated!


Malcolm Cook
Computational Biology - Stowers Institute for Medical Research

> system(intern=TRUE,'yes | head ')
 [1] "y" "y" "y" "y" "y" "y" "y" "y" "y" "y"
> library(tcltk)
Loading Tcl/Tk interface ... done
> system(intern=TRUE,'yes | head ')

### this now does not return to the prompt and Looking at 'top' shows that 'yes' is running until I hit ctrl-c, after which it returns.
C-c C-c
  [1] "y" "y" "y" "y" "y" "y" "y" "y" "y" "y"

> sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

[1] C

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

More information about the R-devel mailing list