File: active.md

package info (click to toggle)
r-cran-devtools 2.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,340 kB
  • sloc: sh: 15; makefile: 5
file content (21 lines) | stat: -rw-r--r-- 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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