[R] Issue with non-standard file 'vert.txt' in R CMD check

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Tue Nov 19 13:17:08 CET 2024


Dear Zahra Heidari Ghahfarrokhi,

Welcome to R-help!

В Mon, 18 Nov 2024 19:48:39 +0330
zahra heidari gh <z.heidari.gh using gmail.com> пишет:

>  A non-standard file named `vert.txt` is being generated in the
> check directory, causing a NOTE in the check results. Despite adding
> `vert.txt` to `.Rbuildignore`, the file is still appearing. And,
> there are no commands in any part of my package's code that would
> generate this file.

Does your package use the packages 'FD' or 'STEPCAM'? A quick search
for "vert.txt" on the GitHub mirror of CRAN demonstrates that these
packages create a file with this name [1], possibly in the current
directory, possibly without cleaning it up afterwards.

If yes, you might have to point the maintainer to the CRAN policy [2]
and the CRAN Cookbook [3]. These packages should not be creating a file
named "vert.txt" in the current directory because the user may have a
different important file named "vert.txt" in the current directory.

Next time you have a similar question, it's better addressed to
r-package-devel using r-project.org, not r-help using r-project.org.

-- 
Best regards,
Ivan

[1]
https://github.com/cran/FD/blob/1993781d8fa7e6f4107ebd3f52f919c6fe1760f7/R/dbFD.R#L685
https://github.com/cran/STEPCAM/blob/920bf1877374edc51b004af42a1339c4654c9344/R/modified_dbFD.R#L339

[2]
https://cran.r-project.org/web/packages/policies.html

[3]
https://contributor.r-project.org/cran-cookbook/code_issues.html#writing-files-and-directories-to-the-home-filespace



More information about the R-help mailing list