[R-gui] function for user input

Adrian Dusa dusa.adrian at gmail.com
Sun Oct 28 02:31:44 CEST 2007


On 10/28/07, shweta <sschavan at ualr.edu> wrote:
>
>  Hi Adrian,
>
>  Thanks, I think readline function can work for me. Is it that scan and
> readLines function can read only from files or take input dynamically also?
>
>  Regards,
>  Shweta.

Oh, but the scan() function can also be used to accept dynamic input...

Example:

myobj <- scan()

R waits for the user to input some data, simpy press Enter after the
last entry was entered.

Best,
Adrian



More information about the R-SIG-GUI mailing list