tests/testthat/_snaps/active.md

find_active_file() gives useful error if no RStudio

Code
  find_active_file()
Condition
  Error:
  ! Argument `file` is missing, with no default

fails if can't find tests

Code
  find_test_file("R/foo.blah")
Condition
  Error:
  ! Don't know how to find tests associated with the active file 'foo.blah'
Code
  find_test_file("R/foo.R")
Condition
  Error:
  ! No test files found


Try the devtools package in your browser

Any scripts or data that you put into this service are public.

devtools documentation built on Oct. 12, 2022, 1:06 a.m.