From 3946eddb380e4f83b956b88512879a988ba4aabc Mon Sep 17 00:00:00 2001 From: Ian Powell Date: Tue, 20 Aug 2024 22:36:46 +1000 Subject: [PATCH] This just does not feel right, but it fixes the R CMD check NOTE and test warning --- R/tables_long.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/tables_long.R b/R/tables_long.R index e06670f..220306f 100644 --- a/R/tables_long.R +++ b/R/tables_long.R @@ -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))