Skip to content

Commit

Permalink
Remove class list from pkrt_list() output
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgallou committed Jul 26, 2024
1 parent 3cb4e27 commit 97ea222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/pkrt-list.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ itemize_citations <- function(pkgs) {
}

as_pkrt_list <- function(x) {
structure(x, class = c("pkrt_list", "list"))
structure(x, class = "pkrt_list")
}

#' @export
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/pkrt-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
..- attr(*, "pkg")= chr "bar"
..- attr(*, "ver")= chr "0.2.0"
..- attr(*, "ref")= chr "@bar"
- attr(*, "class")= chr [1:2] "pkrt_list" "list"
- attr(*, "class")= chr "pkrt_list"

# pkrt_list() gives meaningful error messages

Expand Down

0 comments on commit 97ea222

Please sign in to comment.