Skip to content

Commit

Permalink
revert one change, as.data.frame.table keeps old sAF=TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Jun 13, 2024
1 parent 06e3412 commit 6bcfc5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test-linter_tags.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ test_that("lintr help files are up to date", {
)

# Counts of tags from available_linters()
# NB: as.data.frame.table returns stringsAsFactors=TRUE default in R>4
db_tag_table <- as.data.frame(
table(tag = unlist(lintr_db$tags)),
responseName = "n_linters"
responseName = "n_linters",
stringsAsFactors = FALSE
)
# In ?linters, entries in the enumeration of tags look like
# \item{\link[=${TAG}_linters]{${TAG}} (${N_LINTERS_WITH_TAG} linters)}
Expand Down

0 comments on commit 6bcfc5a

Please sign in to comment.