Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Oct 9, 2024
1 parent f8376e8 commit 6af7e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/matrix_form.R
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ mf_update_cinfo <- function(mf, colwidths = NULL, rep_cols = NULL) {
if (is_listing && length(mf$listing_keycols) == 1 && length(r_colwidths) - nrepcols < 1) {
cinfo$par_extent <- 0
# listing with all key columns
} else if (!is.null(mf$listing_keycols) && mf_ncol(mf) == length(mf$listing_keycols)) {
} else if (is_listing && mf_ncol(mf) == length(mf$listing_keycols)) {
cinfo$par_extent <- cumsum(c(0, cinfo$self_extent[seq_len(nrepcols - 1)]))
} else {
cinfo$par_extent <- cumsum(c(0, cinfo$self_extent[seq_len(nrepcols)], rep(0, length(r_colwidths) - nrepcols - 1)))
Expand Down

0 comments on commit 6af7e66

Please sign in to comment.