From maechler at stat.math.ethz.ch  Thu Apr 17 11:22:04 2014
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Thu, 17 Apr 2014 11:22:04 +0200
Subject: [Rd] R 3.1.0: 'R CMD Sweave' deletes non tex files created upon
 batch mode exit
In-Reply-To: <534D2C0A.3090502@gmail.com>
References: <4E473ADD-6080-496D-AF34-15AEDEE52CDB@me.com>
	<21323.54364.87334.81949@stat.math.ethz.ch>
	<CAD32310-9E37-43A0-8CA6-9FF4A01C5324@me.com>
	<534D14AF.8020500@gmail.com>
	<2C3A5ADD-8560-448F-8042-74D68EBF922D@gmail.com>
	<534D2C0A.3090502@gmail.com>
Message-ID: <21327.40252.449500.713638@stat.math.ethz.ch>

>>>>> Duncan Murdoch <murdoch.duncan at gmail.com>
>>>>>     on Tue, 15 Apr 2014 08:54:34 -0400 writes:

    > On 15/04/2014 8:12 AM, peter dalgaard wrote:
    >> On 15 Apr 2014, at 13:14 , Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
    >> 
    >> > On 14/04/2014, 10:23 AM, Marc Schwartz wrote:
    >> >> Hi Martin,
    >> >>
    >> >> Thanks for your confirmation on this.
    >> >>
    >> >> I normally do not use R CMD Sweave, as I too run under ESS in normal day to day operations. This finding was a quirk of having a particular Rnw document that I occasionally run using R CMD Sweave and I had done so over the weekend, realizing this behavior.
    >> >
    >> > This sounds like an argument for dropping R CMD Sweave, rather than fixing it.  The bug was introduced in July, 2013, and nobody noticed it because so few people use that feature, and apparently nobody who does use it bothers to test pre-release versions.
    >> >
    >> 
    >> I'd say that that cat is out of the bag. There are probably umpteen documents around suggesting "R CMD Sweave". As people use Sweave only sporadically, it could take years before the old usage got stamped out. And anyways, the command format is the obvious way to generate documents in scripts and makefiles, isn't it?
    >> 

    > I use Rscript, and I expect most others do too, but I was wrong about 
    > how long this went unreported.  Martin Morgan reported it in February in 
    > R-devel and I didn't notice.  He even gave a link to it in a message in 
    > March on another topic; I replied to the March message, but didn't 
    > follow the link.

    > We discourage people from using bugs.r-project.org for pre-release 
    > issues; perhaps we shouldn't do that.

    > Duncan Murdoch

I agree:  Rather we should encourage such volunteer testers reporting
such problems.

The 'R version' is already part of the bug report form;
I'm not sure we can easily *list* all the "R version == R-devel"
bugs easily via web interface, but even w/o that,
we should rather be glad for such reports.

PS: I'm currently testing a patch where 'R CMD Sweave' will
    revert to not deleting anything after running the R code by default.

Martin Maechler



[Rd] R 3.1.0: 'R CMD Sweave' deletes non tex files created upon batch mode exit
Martin Maechler