Re: [R] how to get character from keyboard when run a file

2011-09-10 Thread Greg Snow
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

Re: [R] how to get character from keyboard when run a file

2011-09-10 Thread R. Michael Weylandt
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