title: testthat.R directory paths
body: <p>I'm trying out the R package structure for a data analsysis project - i.e. one that is used entirely through <code>devtools::load_all()</code>, rather than <code>library(mypackage)</code>.</p>
  <p>When I use this structure, all of my tests reference their directory, instead of the project root directory, for example:</p>
  <pre><code>test_that(&quot;Load some data&quot;,{
    df &lt;- readr::read_csv('data/someData.csv')
  })
  </code></pre>
  <p>This code failes, because the <code>test_that</code> function reads from the file's directory (&quot;tests/testthat/data/someData.csv&quot;), rather than the current or project directory. I could set the directory within each instance of <code>test_that</code>, but I'd rather avoid the redundancy of doing so. Is there any way that I can run these files from the testthat.R file where they'll reference the correct directroy?</p>