insightsengineering / rlistings

Value formatting and ASCII rendering infrastructure for tables and listings.
https://insightsengineering.github.io/rlistings/
24 stars 5 forks source link

Issue when the listing is oneliner in pagination #195

Closed Melkiades closed 7 months ago

Melkiades commented 8 months ago

@BFalquet for the rep example

BFalquet commented 8 months ago
library(chevron)
library(rlistings)
library(dplyr)

 proc_data <- syn_data
  proc_data$adae <- proc_data$adae |>
    mutate(
      AEBODSYS = with_label("", formatters::var_labels(syn_data$adae)[["AEBODSYS"]]),
      AEDECOD = with_label("", formatters::var_labels(syn_data$adae)[["AEDECOD"]]),
      AETERM = with_label("", formatters::var_labels(syn_data$adae)[["AETERM"]])
    )

  res <- run(ael01_nollt, proc_data)
  export_as_txt(res)

fails with message:

Error in apply(self_extent_df, 1, max) : 
  dim(X) must have a positive length
pawelru commented 8 months ago

Can we please prioritise this? It makes our integration tests fail. It seems that for quite a while...