zahra heidari gh
2024-Nov-18  16:18 UTC
[R] Issue with non-standard file 'vert.txt' in R CMD check
Dear R Support Team,
I am experiencing an issue with my R package during the `R CMD check`
process. 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.
Here are the details of the issue:
- Package name: RHC
- Version: 0.1.0
- R version: 4.4.2
- Operating system: Windows 10
Attached (package building error):
?  checking examples ... [12s] OK (12.6s)
N  checking for non-standard things in the check directory
   Found the following files/directories:
     'vert.txt'
?  checking for detritus in the temp directory
   See
'C:/Users/sana/AppData/Local/Temp/RtmpGWGa7s/file32b039da423/RHC.Rcheck/00check.log'
   for details.
?? R CMD check results ??????????????? RHC 0.1.0 ????
Duration: 1m 38.5s
? checking for non-standard things in the check directory ... NOTE
  Found the following files/directories:
    'vert.txt'
0 errors ? | 0 warnings ? | 1 note ?
Thank you for your cooperation.
I would appreciate any guidance on resolving this issue.
Best regards,
Zahra Heidari Ghahfarrokhi
z.heidari.gh at gmail.com
2024.11.18
-- 
Zahra Heidari Ghahfarrokhi
PhD Student, Faculty of Natural Resources and Earth Sciences, Shahrekord
University, IRAN
Email: z_heidari_gh at yahoo.com <aa_naghipour at yahoo.com>,
*zahra.heydarigh at stu.sku.ac.ir
<zahra.heydarigh at stu.sku.ac.ir>*
	[[alternative HTML version deleted]]
Ivan Krylov
2024-Nov-19  12:17 UTC
[R] Issue with non-standard file 'vert.txt' in R CMD check
Dear Zahra Heidari Ghahfarrokhi, Welcome to R-help! ? Mon, 18 Nov 2024 19:48:39 +0330 zahra heidari gh <z.heidari.gh at 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 at r-project.org, not r-help at 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