Displaying 1 result from an estimated 1 matches for "hitreturn".
2010 Feb 05
2
Pause in non-interactive mode
Dear all,
I've found this nice code fragment on the web
(from Jan T. Kim if I'm correct):
hitReturn <- function(msg)
{
invisible(readline(sprintf("%s -- hit return", msg)));
}
But it does not seem to work in non-interactive mode
( I mean, when I start a script like this: R --vanilla < script.R )
It simply continues, I guess the stdin is not connected?
Does somebody know how to...