Skip to content

Truncated list-cols don't seem to get grey coloring #628

Closed

Description

@DavisVaughan

i.e. <tibble> is white but should be grey like the other ones?

Screen Shot 2023-02-16 at 12 03 08 PM

library(tidymodels)

tidymodels_prefer()

data(ames)

ex_data <- 
 ames %>% 
 nest(data1 = c(everything()), .by = Neighborhood) %>% 
 mutate(
  data2 = data1, 
  data3 = data1,
  data4 = data1,
  data5 = data1,
 )

options(width = 111)
print(ex_data)

Activity

  1. krlmlr commented on Mar 12, 2023

    @krlmlr
    Member

    Simpler reprex:

    options(width = 40)
    
    pillar:::new_tbl(n = 1L, list(
      a = "name",
      b = list(data.frame()),
      c = list(data.frame()),
      d = list(data.frame())
    ))
    #> # A data frame: 1 × 4
    #>   a     b            c            d     
    #>   <chr> <list>       <list>       <list>
    #> 1 name  <df [0 × 0]> <df [0 × 0]> <df>

    Created on 2023-03-12 with reprex v2.0.2

  2. krlmlr commented on Mar 12, 2023

    @krlmlr
    Member

    Even simpler:

    pillar::pillar(list(data.frame()), width = 11)
    #> <pillar>
    #> <list>
    #> <df>
    pillar::pillar(list(data.frame()), width = 12)
    #> <pillar>
    #> <list>      
    #> <df [0 × 0]>

    Created on 2023-03-12 with reprex v2.0.2

  3. locked and limited conversation to collaborators on Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions