Skip to content

Commit

Permalink
This just does not feel right, but it fixes the R CMD check NOTE and …
Browse files Browse the repository at this point in the history
…test warning
  • Loading branch information
inpowell committed Aug 20, 2024
1 parent 7b328ea commit 3946edd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/tables_long.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ convert_tabular <- function(

if (hasMeasure) {
spec <- spec |>
mutate(.valname = names(.env$measures)[match(.value, .env$measures)]) |>
mutate(.valname = names(.env$measures)[match(.data$.value, .env$measures)]) |>
unite('.name', c(all_of(.env$colterms), '.valname'), sep = '_', remove = FALSE) |>
select(-.valname) |>
arrange(across(all_of(colterms)), match(.value, .env$measures))
select(-'.valname') |>
arrange(across(all_of(colterms)), match(.data$.value, .env$measures))
}

visualtab <- pivot_wider_spec(table, spec, id_cols = all_of(rowterms))
Expand Down

0 comments on commit 3946edd

Please sign in to comment.