Skip to content

Commit 7aa0057

Browse files
committed
Use rlang::check_installed()
1 parent 1180c41 commit 7aa0057

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ importFrom(purrr,pmap)
4848
importFrom(purrr,pwalk)
4949
importFrom(rlang,"%||%")
5050
importFrom(rlang,abort)
51+
importFrom(rlang,check_installed)
5152
importFrom(rlang,is_installed)
5253
importFrom(rlang,seq2)
5354
importFrom(rlang,set_names)

R/styler-package.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
#' @importFrom magrittr "%>%"
2424
#' @importFrom purrr compact partial flatten flatten_int flatten_chr
2525
#' @importFrom purrr map map_lgl map_int map_chr map2 map2_chr map_at pmap pwalk
26-
#' @importFrom rlang abort warn seq2 is_installed "%||%" set_names
27-
#' @importFrom vctrs vec_rbind
28-
#' @importFrom vctrs vec_slice
29-
#' @importFrom vctrs vec_split
26+
#' @importFrom rlang abort warn seq2 check_installed is_installed "%||%" set_names
27+
#' @importFrom vctrs vec_rbind vec_slice vec_split
3028
## usethis namespace: end
3129
NULL
3230

R/transform-code.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ transform_code <- function(path, fun, ..., dry) {
2222
..., dry = dry
2323
)
2424
} else {
25-
abort(paste(path, "is not an R, Rmd or Rnw file"))
25+
abort(paste(path, "is not an R, Rmd, qmd, or Rnw file"))
2626
}
2727
}
2828

0 commit comments

Comments
 (0)