On 20 Mar 2007, at 13:24, Douglas Bates wrote:
> [snip]
> In cases like this capture.output() is your friend. Write one code
> chunk with results=hide,echo=FALSE that uses capture.output to trap
> the desired output as character strings then use string manipulation
> functions to do the desired
On 3/20/07, Ernest Turro <[EMAIL PROTECTED]> wrote:
>
> On 20 Mar 2007, at 07:53, Martin Maechler wrote:
>
> >> "Wolfi" == Wolfgang Huber <[EMAIL PROTECTED]>
> >> on Mon, 19 Mar 2007 15:38:00 + writes:
> >
> >>> the problem with results=hide is that it suppresses everything. I
> >>>
On 20 Mar 2007, at 07:53, Martin Maechler wrote:
>> "Wolfi" == Wolfgang Huber <[EMAIL PROTECTED]>
>> on Mon, 19 Mar 2007 15:38:00 + writes:
>
>>> the problem with results=hide is that it suppresses everything. I
>>> just
>>> need Sweave to suppress strings ending in '\r'...
>
>
> "Wolfi" == Wolfgang Huber <[EMAIL PROTECTED]>
> on Mon, 19 Mar 2007 15:38:00 + writes:
>> the problem with results=hide is that it suppresses everything. I just
>> need Sweave to suppress strings ending in '\r'...
Wolfi> Dear Ernest,
Wolfi> IMHO it is good prac
Ernest Turro <[EMAIL PROTECTED]> writes:
> Hi Wolfgang,
>
> the problem with results=hide is that it suppresses everything. I
> just need Sweave to suppress strings ending in '\r'...
Perhaps another idea is to add a verbose=FALSE option to the function
that spews \r. In general, any status out
> the problem with results=hide is that it suppresses everything. I just
> need Sweave to suppress strings ending in '\r'...
Dear Ernest,
IMHO it is good practice to make the printing of these progress reports
("sweep 4 of 1024\r") optional and produce them only if the user calls
your functi
Hi Wolfgang,
the problem with results=hide is that it suppresses everything. I
just need Sweave to suppress strings ending in '\r'...
Best,
Ernest
On 19 Mar 2007, at 14:49, Wolfgang Huber wrote:
> Dear Ernest,
>
> this may not be exactly what you asked for, but how about setting
> "result
Dear Ernest,
this may not be exactly what you asked for, but how about setting
"results=hide" in the options of your code chunk?
Best wishes
Wolfgang
--
Wolfgang Huber EBI/EMBL Cambridge UK http://www.ebi.ac.uk/huber
Ernest
Dear all,
I have a code chunk in my Rnw file that, when executed, outputs
carriage return characters ('\r') to inform on the progress (e.g.
"sweep 4 of 1024\r"). But Sweave interprets this as a newline
character, and therefore I get countless pages of output in my
vignette where I only rea