Skip to content

Commit

Permalink
silence name repair (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Dec 5, 2023
1 parent 0c695df commit a2b69a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/list-svd-tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tidy_svd <- function(x, matrix = "u", ...) {

if (matrix == "u") {
ret <- x$u %>%
as_tibble(.name_repair = "unique") %>%
as_tibble(.name_repair = "unique_quiet") %>%
tibble::rowid_to_column("row") %>%
pivot_longer(
cols = c(dplyr::everything(), -row),
Expand All @@ -65,8 +65,9 @@ tidy_svd <- function(x, matrix = "u", ...) {
cumulative = cumsum(percent)
)
} else if (matrix == "v") {
# use unique_quiet to silence test in tidy_svd
ret <- x$v %>%
as_tibble(.name_repair = "unique") %>%
as_tibble(.name_repair = "unique_quiet") %>%
tibble::rowid_to_column("column") %>%
pivot_longer(
cols = c(dplyr::everything(), -column),
Expand Down

0 comments on commit a2b69a7

Please sign in to comment.