Skip to content

Commit

Permalink
Fix has_pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy authored Feb 21, 2024
1 parent 6e53f89 commit ffafde9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ can_document <- function(pkg) {
}
}

has_pkgdown <- function(pkg) {
has_pkgdown <- function(path) {
tryCatch(
!is.null(
rprojroot::find_root_file(
criterion = rprojroot::is_pkgdown_project,
path = ".")
path = path)
),
error = function(e) FALSE
)
Expand Down

0 comments on commit ffafde9

Please sign in to comment.