Skip to content

Commit 31033d6

Browse files
committed
Include directory too
1 parent 7902ad4 commit 31033d6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

R/check-doc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ check_doc_fields <- function(pkg = ".", fields = c("value", "examples")) {
9090

9191
results <- lapply(stats::setNames(fields, fields), function(field) {
9292
missing <- !vapply(rd, has_tag, logical(1), tag = field)
93-
path_file(paths[missing])
93+
path_rel(paths[missing], pkg$path)
9494
})
9595

9696
for (field in fields) {

tests/testthat/_snaps/check-doc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
check_doc_fields(pkg)
55
Message
66
! Missing `\value` section in 1 file:
7-
* foo.Rd
7+
* man/foo.Rd
88
! Missing `\examples` section in 1 file:
9-
* bar.Rd
9+
* man/bar.Rd
1010

1111
# check_doc_fields output - all present
1212

0 commit comments

Comments
 (0)