Add a popup text box within an R script using tcltk

后端 未结 3 1506
难免孤独
难免孤独 2021-01-13 02:22

I have a long-ish script to do some data analysis, and it has to connect to several databases. One of the databases tends to update my password more frequently than I like,

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-13 03:14

    You might find the ginput function of gWidgets wraps up what Greg Snow suggests for you:

    require(gWidgets)
    options(guiToolkit="tcltk") 
    NameVal <- ginput("Enter your passsword:")
    

    NameVal will contain the entered string or NA if you cancel.

提交回复
热议问题