问题描述:

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?

网友答案:

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.

相关阅读:
Top