R: building a simple command line plotting tool/Capturing window close events

后端 未结 1 2030
遇见更好的自我
遇见更好的自我 2020-12-10 06:32

I am trying to use R within a script that will act as a simple command line plot tool. I.e. user pipes in a csv file and they get a plot. I can get to R fine and get the pl

相关标签:
1条回答
  • 2020-12-10 06:48

    You need something with a distinct event loop --- and the best portable solution is to rely on the (already included) tcltk package. Start with its demos.

    The simplest case may be

    > library(tcltk)
    > tk_messageBox(message="Press a key")
    

    which pops a box you need to acknowledge to proceed.

    0 讨论(0)
提交回复
热议问题