Skip to content
Prev 43731 / 398513 Next

Sweave problem

Note that ?scan says

    file: the name of a file to read data values from.  If the
          specified file is '""', then input is taken from the keyboard

and you want it to come from the file.  So I would not have expected it to 
work.

However, the help file is not totally accurate, as this will work in a
batch file in R (although it has not worked in some versions of S-PLUS).  
The problem is that Sweave does expect the input to all be S code, and
does not get as far as running it.


Far from being `rather simple', this is a rather sophisticated usage, 
intended for use only at a keyboard.
On Thu, 5 Feb 2004, Murray Jorgensen wrote: