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, (using 2.15) I lose the prompt (which formerly defaulted to '1:') and
have to enter some arbitrary value like '1' (whereas hitting enter with no
value entered counted as input when running from an interactive session).




--
View this message in context: 
http://r.789695.n4.nabble.com/scan-in-a-script-tp898837p4649634.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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: 
http://r.789695.n4.nabble.com/tm-map-help-tp4423241p4637492.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.