RStudio hotkeys: Tests

Tools > Modify keyboard shortcuts...

  • Current .R file (or corresponding testthat file)
    • “Run a test file”: Ctrl + T
    • “Report test coverage for a file”: Ctrl + R
  • Entire package
    • “Test package”: Ctrl + Shift + T
    • “Report test coverage for a package”: Ctrl + Shift + R

More in chapter 13!