Skip to content
Prev 366187 / 398502 Next

Getting scan() -command to work during the program run

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