From schlather at cu.lu  Wed May 12 10:15:17 2004
From: schlather at cu.lu (Martin Schlather)
Date: Wed May 12 09:00:50 2004
Subject: [Rd] Re: bad interaction between RandomFields 1.1.11 and Sweave
In-Reply-To: <Pine.LNX.4.44.0405111604570.26648-100000@bolker.zoo.ufl.edu>
References: <Pine.LNX.4.44.0405111604570.26648-100000@bolker.zoo.ufl.edu>
Message-ID: <40A1DD15.3020809@cu.lu>


Dear Ben,

I do not know how to solve the general problem that backspaces
cause within Sweave, but which are needed to implement running
counters.

To avoid the specific problems for RandomFields, a new version
of RandomFields is uploaded with default "pch="*" instead of
pch="!".

Cheers,
Martin

Ben Bolker wrote:

>  Not really a bug (I eventually discovered), but ...
>  When running GaussRF()/DoSimulateRF() with n>1, the default pch="!" 
>prints backspaces to the terminal, which causes problems (LaTeX barfs) if 
>you're running this within an Sweave() job.  Setting RFparameters(pch="") 
>fixes the problem.  
>   Could put this in the documentation, but I don't know where you could 
>put it that it would attract attention -- wouldn't have occurred to me to 
>look at RFparameters before poking through the code to see where the ^H 
>was coming from.
>  
>  I was going to suggest testing interactive() to see if the code was 
>running in batch mode or not, but I just tried that with Sweave() and it 
>thinks that interactive() is TRUE when running Sweave.  Oh well.  
>Any one else have a solution?
>
>  Ben Bolker
>
>  
>


-- 
Martin Schlather
Universite du Luxembourg
Faculte des Sciences, de la Technologie et de la Communication
Laboratoire de Mathematiques
162 A, av. de la Faiencerie
L -- 1511 Luxembourg

email: schlather@cu.lu         http://www.cu.lu/~schlathe/
phone: +352 466644 642         Fax : +352 466644 513


[Rd] Re: bad interaction between RandomFields 1.1.11 and Sweave
Martin Schlather