Closed HenrikBengtsson closed 4 years ago
FWIW, calling:
utils::menu(c("yes", "no"), graphics = FALSE, title = "Yes or no?")
during startup will also trigger .RData
to be loaded.
Using
utils::menu(..., graphics = TRUE)
utils::select.list(..., graphics = TRUE)
seems to work, but it also blocks the RStudio GUI to fully load until after the GUI prompt has been answered.
For the record, it's not possible to use rstudioapi:::showQuestion()
during startup because RStudio is not yet fully initiated and we'll get "Error: RStudio not running".
Ended up using a tcltk::tk_messageBox()
.
Related to Issues #79. With
in
./.Rprofile
and an existing./.RData
data file, will result in the RStudio Console loading the./.RData
file whenreadline()
is called, not after the.Rprofile
finishes;See also
Reported to https://github.com/rstudio/rstudio/pull/5844