Disable/suppress tcltk popup for CRAN mirror selection in R

后端 未结 3 1385
春和景丽
春和景丽 2020-12-23 23:21

My question is similar to a question previously posted but never really answered here:

Disable GUI, graphics devices in R

I do not like the R tcltk popups fo

3条回答
  •  庸人自扰
    2020-12-23 23:41

    Dirk provides ways to avoid the menus altogether, but to answer your question as posed, I think you want

    options(menu.graphics=FALSE)
    

    I tracked this option down by finding the class of objects returned from help (it's help_files_with_topic), scanning utils:::print.help_files_with_topic and finding the line

    menu(txt, title = gettext("Choose one"), graphics = getOption("menu.graphics"))
    

提交回复
热议问题