Skip to content

R CMD check file issues

5 messages · Duncan Murdoch, Henrik Bengtsson, Brian Ripley +1 more

#
On 11-09-22 8:30 AM, Nick Sabbe wrote:
I do use Win7 on one machine, and have seen odd things happen, but not 
what you describe.

I imagine a simple workaround for you would be to delete the folder 
before you call R CMD check (i.e. wrap R CMD check in a batch file to do 
that), but it would be nice if that were not necessary.

Duncan Murdoch
#
I'm on Windows 7 (64-bit) and everything works perfectly.  Obviously,
there is either another process locking down a file with the same name
or the directory doesn't exist at the time of the file() call.

Now to the most important question  ...what's your sessionInfo()?

/Henrik

On Thu, Sep 22, 2011 at 5:33 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
#
I do see this on Win7, and it is an antivirus issue (Sophos). 
Excluding the R check area solves it for me, as does an earlier 
delete.

I have considered adding a delay in check.R, but it is not clear how 
long it would need to be.
On Thu, 22 Sep 2011, Henrik Bengtsson wrote:

            

  
    
2 days later
#
Here you go (though I doubt it will be actually helpful):

R version 2.13.1 (2011-07-08)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Dutch_Belgium.1252  LC_CTYPE=Dutch_Belgium.1252
LC_MONETARY=Dutch_Belgium.1252 LC_NUMERIC=C                  
[5] LC_TIME=Dutch_Belgium.1252    

attached base packages:
[1] grDevices datasets  splines   graphics  stats     tcltk     utils
methods   base     

other attached packages:
 [1] addendum_1.4       snowfall_1.84      snow_0.3-7         mgcv_1.7-6
rgl_0.92.798       glmnet_1.7        
 [7] Matrix_0.9996875-3 lattice_0.19-33    svSocket_0.9-51    TinnR_1.0.3
R2HTML_2.2         Hmisc_3.8-3       
[13] survival_2.36-9   

loaded via a namespace (and not attached):
[1] cluster_1.14.0 grid_2.13.1    nlme_3.1-102   svMisc_0.9-63  tools_2.13.1

Note that this is the sessionInfo from an interactive session. I don't know
of an obvious way to provide you the sessionInfo of the session that is
started by R CMD check (Assuming that at that point, an 'actual' R session
has actually been started - it appears the error occurs before any 'real
work' is started).


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
#
In my particular case, the antivirus appears irrelevant (turning it off does
not change anything ; admittedly, turning 'off' an antivirus program through
its user interface may still involve some background meddling - stubborn
creatures they are, these AVs)

Either way: since this is the only place I know of where R has problems with
the slow filehandling in Win7, a solution may be to check repeatedly (with
some delay and a timeout) after the delete calls whether the files are
actually gone.

Ugly, I admit, but since our Redmond friends don't provide it...


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