[R-pkg-devel] File name error

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Dec 21 11:21:58 CET 2017

This is a new check:

You must not write into the user's filespace without explicit agreement 
by the user (by specifying path/name).

Note that some users won't even have permissions to write into the 
package's installation directory if that is set up site wide by an 
admin, for example.

So please use tempdir() in the examples.

Uwe Ligges

On 21.12.2017 09:21, Blume Christine wrote:
> Hi Cathy,
> I also had troubles with debian (Fedora only gave warnings) and no problems with other systems. Mine was related to me writing a file (or rather trying to write) in a working directory other than tempdir (can be retrieved by tempdir()). I now write it to tempdir and then set the old working directory again at the end of the example. Perhaps that is somehow helpful for your case too?
> I can highly recommend to test your tar.gz file with the check() function of the rhub package. You can for example run check("pathtoyourpackage", platform = "debian-gcc-devel") or
> check_for_cran("pathtoyourpackage", platform = "debian-gcc-devel"), i.e. test your package on debian without troubles.
> Best,
> Christine
> -----Ursprüngliche Nachricht-----
> Von: R-package-devel [mailto:r-package-devel-bounces at r-project.org] Im Auftrag von Cathy Lee Gierke
> Gesendet: Donnerstag, 21. Dezember 2017 07:15
> An: R Package Development
> Betreff: [R-pkg-devel] File name error
> I am getting the following error from the auto-checks when trying to submit a package to CRAN:
> r-devel-linux-x86_64-debian-gcc
> <https://cran.r-project.org/web/checks/check_flavors.html#r-devel-linux-x86_64-debian-gcc>
> 3.63 56.71 60.34 ERROR
> <https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-gcc/CATkit-00check.html>
> Error in pdf(file = fileName4, width = 8, height = 10) :
>    cannot open file
> '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/CATkit/extdata/activity-stress-c57-2-part.txt--20Dec2017--03-51-46CAToutput.pdf'
> Since this works for ALL other flavors, I am assuming it may be some file name restrictions unique to debian-gcc???  I can't think what else would cause it to fail only in the OS.
> debian doesn't like "--"?
> Cathy Lee Gierke
> *“Darkness cannot drive out darkness: only light can do that. Hate cannot drive out hate: only love can do that.” * *“The arc of the moral universe is long, but it bends towards justice.”* *“Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.” *
> *“Never forget that everything Hitler did in Germany was legal.”   *
> *“Forgiveness is not an occasional act, it is a constant attitude.” * *“Injustice anywhere is a threat to justice everywhere.”  *
> ― Martin Luther King Jr.
> <http://www.goodreads.com/author/show/23924.Martin_Luther_King_Jr_>
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

More information about the R-package-devel mailing list