Skip to content

Commit

Permalink
Fix lintr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
galachad committed Jul 23, 2024
1 parent c98acb3 commit 74a5391
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ Imports:
stringr (>= 1.4.0),
memoise (>= 2.0.1),
assertthat,
pillar
pillar,
cli
Suggests:
knitr,
htmltools,
Expand Down
2 changes: 1 addition & 1 deletion R/assertions.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ assert_logical_vector <- function(arg, optional = FALSE) {
}

if (!is.logical(arg)) {
cli::cli_abort('`arg` must be a logical vector but is {.obj_type_friendly {arg}}')
cli::cli_abort("`arg` must be a logical vector but is {.obj_type_friendly {arg}}")
}

invisible(arg)
Expand Down
2 changes: 1 addition & 1 deletion R/ct.R
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ ct_map <-
#'
#' @export
read_ct_spec <- function(file = stop("`file` must be specified")) {
ct_spec <- read.csv(file = file, na.strings = c("NA", ""), colClasses = "character") |>
ct_spec <- utils::read.csv(file = file, na.strings = c("NA", ""), colClasses = "character") |>
tibble::as_tibble()
assert_ct_spec(ct_spec)

Expand Down

0 comments on commit 74a5391

Please sign in to comment.