Skip to content

Commit f356d44

Browse files
committed
fix(ci): add setup-pandoc and standardize Grupo column in exportar_tabla_posthoc
1 parent de6f9dd commit f356d44

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16+
- uses: r-lib/actions/setup-pandoc@v2
17+
1618
- uses: r-lib/actions/setup-r@v2
1719
with:
1820
use-public-rspm: true

R/exportar_tablas.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ exportar_tabla_posthoc <- function(posthoc_res, formato = c("data.frame", "markd
120120
formato <- match.arg(formato)
121121
df <- as.data.frame(posthoc_res)
122122

123+
# Renombrar .group a Grupo para mayor claridad y consistencia
124+
if (".group" %in% names(df)) {
125+
df$Grupo <- trimws(df$.group)
126+
df$.group <- NULL
127+
}
128+
123129
# Formatear columnas numericas
124130
num_cols <- vapply(df, is.numeric, logical(1))
125131
df[num_cols] <- lapply(df[num_cols], function(x) round(x, digitos))

0 commit comments

Comments
 (0)