Skip to content

Commit

Permalink
add switch to differentiate images and links
Browse files Browse the repository at this point in the history
This will address #143
  • Loading branch information
zkamvar committed Nov 16, 2023
1 parent e7e5c45 commit bdb6ac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/utils-validation.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ throw_link_warnings <- function(VAL) {

reports <- line_report(msg = err$labels, err$filepath, err$sourcepos, sep = " ")
failed <- !apply(err[names(link_tests)], MARGIN = 2, all)
issue_warning(what = "links",
types <- paste0(unique(sub("img", "image", err$type)), "s")
issue_warning(what = paste(types, collapse = " and "),
cli = has_cli(),
n = nrow(err),
N = nrow(VAL),
Expand Down

0 comments on commit bdb6ac3

Please sign in to comment.