Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 1, 2024
1 parent 9821313 commit ced0fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/export_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ print.insight_table <- function(x, ...) {
# go through all columns of the data frame
for (i in 1:n_columns) {
# create separator line for current column
tablecol <- paste0(rep_len("-", column_width[i]), collapse = "")
tablecol <- paste(rep_len("-", column_width[i]), collapse = "")

# check if user-defined alignment is requested, and if so, extract
# alignment direction and save to "align_char"
Expand Down Expand Up @@ -874,7 +874,7 @@ print.insight_table <- function(x, ...) {
# Transform to character
rows <- NULL
for (row in seq_len(nrow(final))) {
final_row <- paste0("|", paste0(final[row, ], collapse = "|"), "|", collapse = "")
final_row <- paste("|", paste(final[row, ], collapse = "|"), "|", collapse = "")
rows <- c(rows, final_row)

# First row separation
Expand Down

0 comments on commit ced0fbf

Please sign in to comment.