From ligges at statistik.tu-dortmund.de  Thu Sep 22 14:19:51 2011
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Thu, 22 Sep 2011 14:19:51 +0200
Subject: [Rd] R CMD check file issues
In-Reply-To: <027b01cc7921$6ff74720$4fe5d560$@sabbe@ugent.be>
References: <027501cc791e$4f4df2b0$ede9d810$@sabbe@ugent.be>
	<4E7B22B6.50404@statistik.tu-dortmund.de>
	<027b01cc7921$6ff74720$4fe5d560$@sabbe@ugent.be>
Message-ID: <4E7B27E7.7020609@statistik.tu-dortmund.de>



On 22.09.2011 14:16, Nick Sabbe wrote:
> Hello Uwe, and thanks for your interest in the issue.
>
> There is most certainly not another process that stops working between the
> two R CMD check calls (recently, I've made a habit out of being ready to
> press<up arrow>  <enter>  in the seconds after running my first R CMD check,
> to rerun it if it fails).
>
> At worst, there may ever have been an explorer window open, but this is
> definitely not always the case, and I'm sure this window was not closed
> then, between the calls.
>
> I'm really quite afraid it is more of a windows issue than an R issue, but I
> was hoping you wizards might have a workaround (apart from the obvious
> suggestion to install Linux), as it is immensely annoying...


I have not seen this problem so far (but then, I am mostly under Windows 
XP and winbuilder is Windows Server 2003).

Uwe


>
> Nick Sabbe
> --
> ping: nick.sabbe at ugent.be
> link: http://biomath.ugent.be
> wink: A1.056, Coupure Links 653, 9000 Gent
> ring: 09/264.59.36
>
> -- Do Not Disapprove
>
>
>
>
>> -----Original Message-----
>> From: Uwe Ligges [mailto:ligges at statistik.tu-dortmund.de]
>> Sent: donderdag 22 september 2011 13:58
>> To: Nick Sabbe
>> Cc: r-devel at r-project.org
>> Subject: Re: [Rd] R CMD check file issues
>>
>> Are you sure there is no other check process or editor that locks the
>> file?
>>
>> Uwe Ligges
>>
>>
>> On 22.09.2011 13:53, Nick Sabbe wrote:
>>> This problem is likely to be specific to Windows, and particularly
>> Win7.
>>>
>>>
>>>
>>> After a successful build of a package (R CMD build addendum), I
>> immediately
>>> run an R CMD check for the same package.
>>>
>>> Not always, but _very_ often, I get the following error:
>>>
>>> C:\Users\nisabbe\Documents\@Doctoraat\R>R CMD check addendum
>>>
>>> Loading required package: tcltk
>>>
>>> Loading Tcl/Tk interface ... done
>>>
>>> Loading required package: Hmisc
>>>
>>> Loading required package: survival
>>>
>>> Loading required package: stats
>>>
>>> Loading required package: graphics
>>>
>>> Loading required package: splines
>>>
>>>
>>>
>>> Attaching package: 'Hmisc'
>>>
>>>
>>>
>>> The following object(s) are masked from 'package:survival':
>>>
>>>
>>>
>>>       untangle.specials
>>>
>>>
>>>
>>> The following object(s) are masked from 'package:base':
>>>
>>>
>>>
>>>       format.pval, round.POSIXt, trunc.POSIXt, units
>>>
>>>
>>>
>>> Loading required package: R2HTML
>>>
>>> Warning in file(filename, "wt") :
>>>
>>>     cannot open file
>>> 'C:/Users/nisabbe/Documents/@Doctoraat/R/addendum.Rcheck/00ch
>>>
>>> eck.log': Permission denied
>>>
>>> Error in file(filename, "wt") : cannot open the connection
>>>
>>> Execution halted
>>>
>>>
>>>
>>> If, after this, I immediately reissue the R CMD check command, it
>> works,
>>> without the error.
>>>
>>> I think this has something to do with how Win7 processes file
>> handling
>>> (there are known issues even noticeable in windows explorer), but
>> perhaps
>>> there is a way of circumventing this? It would be greatly
>> appreciated, as
>>> this issue is preventing automation of build/check/install scripts.
>>>
>>>
>>>
>>> Suggestions will be greatly appreciated.
>>>
>>>
>>>
>>> Nick Sabbe
>>>
>>> --
>>>
>>> ping: nick.sabbe at ugent.be
>>>
>>> link:<http://biomath.ugent.be/>   http://biomath.ugent.be
>>>
>>> wink: A1.056, Coupure Links 653, 9000 Gent
>>>
>>> ring: 09/264.59.36
>>>
>>>
>>>
>>> -- Do Not Disapprove
>>>
>>>
>>>
>>>
>>> 	[[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] R CMD check file issues
Uwe Ligges