Skip to content
Prev 111515 / 398498 Next

Redirecting output to the screen

This is much easier in R-devel: just use message() and scan("stdin").

gannet% cat Test.R
message("Enter file name: ", appendLF=FALSE)
fn <- scan("stdin", what="", n=1)

works for me in R-devel via  R --vanilla -f Test.R > Rout.txt
I believe it also works under Windows.
On Wed, 14 Mar 2007, John Schuenemeyer wrote:

            
PLEASE do, and not send HTML.