Are you running a script using 'source' or in batch mode? And do you want the
script to get input from a user instead of from the script? If that is the
case then you need to work a little harder because R assumes that if you are
running in a non-interactive mode (source and batch mode) that i
scan(, what=character())
Michael Weylandt
On Sat, Sep 10, 2011 at 10:16 AM, bebece wrote:
> when run a R file, i can get numeric by scan(), but scan() can't read
> character or i make a wrong.
> so how can i get character from keyboard when i run a R file?
>
> --
> View this message in context
2 matches
Mail list logo