Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R CRAN Check - detritus in temp directory

Tags:

r

cran

I'm getting a recurring NOTE on Debian CRAN checks (Debian only: 11 OK, 1 NOTE), it cannot be reproduced locally using docker interactively or via {rhub}.

* checking for detritus in the temp directory ... NOTE
Found the following files/directories:
  ‘calibre_4.99.5_tmp_tgaufday’ ‘calibre_4.99.5_tmp_uz2f_rsg’

The name of the files differ every time but they always start with calibre and there are always two of them. This is for the package {echarts4r}, the latest CRAN fail here.

EDIT this is called by creating a browser in the examples, ensure these are not run with if(interactive())

like image 827
JohnCoene Avatar asked Oct 28 '25 04:10

JohnCoene


2 Answers

Turns out this issue appears when one starts a web browser from the @examples, in my case a shiny application, wrap them in if(interactive()), it was difficult to tell given the NOTE...

like image 118
JohnCoene Avatar answered Oct 29 '25 20:10

JohnCoene


This doesn't matter, so far as I can tell. That sort of 'detritus' won't show up when the package is rebuilt at CRAN. On OS X one often sees a similar note due to leftover files from the attempts to go text --> LaTeX --> PDF. Unless someone from the R dev team rejects your submission, ignore this.

like image 40
Carl Witthoft Avatar answered Oct 29 '25 18:10

Carl Witthoft



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!