Building a package using testthat for tests; those require an external file which as recommended lies in /tests/testthat/my-file
.
However the R CMD check
produces
Found the following hidden files and directories:
tests/testthat/my-file
The above is NOTE (Status: 1 NOTE
)
If I add my-file to .Rbuildignore
(devtools::use_build_ignore("/tests/testthat/my-file"
) then the file is well, ignored during the check, thus all tests fail and the package cannot be build.
How can I solve this issue? I understand that a NOTE
is passable but I would like to get rid of it nonetheless.