Hi,

How to get scan(file="") command to ask my input from the keyboard?

If I put the command straight to the console it works

> X1 <- scan(n=1)
1: 22
Read 1 item

but as a part of a program it just continues without asking my value?

> X1 <- scan(n=1)
1:
Read 0 items

Yours,

Atte Tenkanen

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to