title: Run all testthat tests for an R package?
body: <p>I googled, found <a href="https://rdrr.io/cran/testthat/man/test_dir.html" rel="nofollow noreferrer">this</a>; accordingly, ran <code>test_dir()</code> (it errors), tried <code>test_dir(getwd())</code> from the package root (it also errors). I also tried <code>test_package()</code>, but it also errors if the argument is left <code>NULL</code> or returns nothing if the package name is provided as a string. </p>
  
  <h3>Question</h3>
  
  <p>How do you quickly run all tests in a package from the R console (assuming <code>getwd()</code> is at the package root)?</p>
  
  <h3>Note</h3>
  
  <p>I know you can <code>R CMD check</code> but I don't need the other checks, just the tests</p>