Iman
Iman

Reputation: 2324

waiting for user response in RStudio

when i run RScripts, R never wait for user response.

AA <- readline("min mean?")  
BB <- readline("max min?")
CC <- readline("min var?")
DD <- readline("max var?")

the resualt

AA <- readline("min mean?")  
min mean? BB <- readline("max min?")
> CC <- readline("min var?")
min var? DD <- readline("max var?")

How can i make R to wait for use response?

Upvotes: 2

Views: 160

Answers (1)

hamsternik
hamsternik

Reputation: 1426

If you click on Run button in the right top of current script window, your script will perform only one line. If you wanna to start your full script, you have to click on Source button beside with Runbutton.

But, actually, if you click on either of this buttons, you can get an input into the interactive mode below. So, write, please, your actions to start script.

Upvotes: 1

Related Questions