testthat .Rbuildignore + external file (NOTE)
<p>Building a package using testthat for tests; those require an external file which as recommended lies in <code>/tests/testthat/my-file</code>.</p>

<p>However the <code>R CMD check</code> produces</p>

<pre><code>Found the following hidden files and directories:
  tests/testthat/my-file
</code></pre>

<p>The above is NOTE (<code>Status: 1 NOTE</code>)</p>

<p>If I add my-file to <code>.Rbuildignore</code> (<code>devtools::use_build_ignore("/tests/testthat/my-file"</code>) then the file is well, ignored during the check, thus all tests fail and the package cannot be build.</p>

<p>How can I solve this issue? I understand that a <code>NOTE</code> is passable but I would like to get rid of it nonetheless.</p>