Re: [R] 'scan' in a script?

2012-11-15 Thread yofiffy
It looks like you are trying to use the scan function to pause some script being called with the source function until you provide user input. To do this, you need to specify the argument file=stdin when scan runs inside a process. EG scan(file='stdin', nmax=1). In my Linux terminal, at least,

Re: [R] tm_map help

2012-07-23 Thread yofiffy
I encountered this error when I used readLines on a text file, and some of the lines were empty. Once I extracted empty rows it worked fine, EG Text = readLines(~/text.txt) extracts = which(Text == ) Text = Text[-extracts] -- View this message in context: