[R] How to wait for a user response in Rscript?

Peter Ehlers ehlers at ucalgary.ca
Thu Nov 19 23:53:14 CET 2009


You could try

  ?example

and see what the help page says.

  -Peter Ehlers

Peng Yu wrote:
> Why I don't see 'par(ask=T)' in /usr/lib/R/library/graphics/R-ex/barplot.R?
> 
> Is 'par(ask=T)' implicitly called by example()?
> 
> On Mon, Sep 7, 2009 at 10:55 AM, RIOS,ALFREDO ARTURO <arios at ufl.edu> wrote:
>> Hi Peng
>>
>> I think this is what you are looking for
>>
>> par(ask=T)
>>
>> Alfredo
>>
>>
>> On Sun Sep 06 12:52:31 EDT 2009, Peng Yu <pengyu.ut at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> In 'example(barplot)' running in R, I see 'Hit <Return> to see next
>>> plot:', then R waits for my input. I am wondering how to wait for a
>>> user response in Rscript.
>>>
>>> Regards,
>>> Peng
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> 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.
>>>
>>>
>>
>>
>> --
>> RIOS,ALFREDO ARTURO
>>
>>
> 
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
> 
>




More information about the R-help mailing list