[R-gui] function for user input

Adrian Dusa dusa.adrian at gmail.com
Sat Oct 27 17:33:44 CEST 2007


Hello Shweta,

On Saturday 27 October 2007, sschavan at ualr.edu wrote:
> Hi,
>
> I was working on R-gui and I was wondering if there is any way to take
> input from user the way we take in perl using <STDIN>.
> All I need is to get the user input from a R-gui and save/process the
> data values entered by the user.
>
> I will be glad if anyone can let me know about taking user input in R.

I have no idea about perl and/or <STDIN>, but if you need input from the user 
in the R session you could look at these functions:
?scan
?readLines
?readline

I hope this helps,
Adrian


-- 
Adrian Dusa
Romanian Social Data Archive
1, Schitu Magureanu Bd
050025 Bucharest sector 5
Romania
Tel./Fax: +40 21 3126618 \
          +40 21 3120210 / int.101



More information about the R-SIG-GUI mailing list