title: How to troubleshoot Error: Could not find package root?
body: <p>I am running the command: <code>devtools::use_testthat()</code></p>
  
  <p>and I get the error: </p>
  
  <blockquote>
    <p>Error: Could not find package root.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/hJT8r.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hJT8r.png" alt="enter image description here"></a></p>
  
  <p>Why this happens?</p>