Skip to content

Commit

Permalink
Revert "lintr"
Browse files Browse the repository at this point in the history
This reverts commit ced0fbf.
  • Loading branch information
strengejacke committed Nov 1, 2024
1 parent ced0fbf commit 4c1a8da
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 <- paste(rep_len("-", column_width[i]), collapse = "")
tablecol <- paste0(rep_len("-", column_width[i]), collapse = "")

Check warning on line 826 in R/export_table.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/export_table.R,line=826,col=17,[paste_linter] Use paste(), not paste0(), to collapse a character vector when sep= is not used.

# 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 <- paste("|", paste(final[row, ], collapse = "|"), "|", collapse = "")
final_row <- paste0("|", paste0(final[row, ], collapse = "|"), "|", collapse = "")

Check warning on line 877 in R/export_table.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/export_table.R,line=877,col=30,[paste_linter] Use paste(), not paste0(), to collapse a character vector when sep= is not used.
rows <- c(rows, final_row)

# First row separation
Expand Down

0 comments on commit 4c1a8da

Please sign in to comment.