Skip to content

single footnotes not displayed in opt_interactive() #1615

@obsaditelnost

Description

@obsaditelnost

Prework

Description

In interactive mode: a single footnote is not displayed unless there is a second tab_footnote-call or a call to tab_source_note

Reproducible example

Works:

gt::exibble |> 
    gt::gt() |> 
    gt::tab_footnote("this is a footnote", locations = gt::cells_column_labels(char))  |> 
    gt::tab_source_note("this is a source note")  |> 
    gt::opt_interactive()

Works (workaround):

gt::exibble |> 
    gt::gt() |> 
    gt::tab_footnote("")  |> 
    gt::tab_footnote("this is a footnote", locations = gt::cells_column_labels(char))  |> 
    gt::opt_interactive()

Does not work:

gt::exibble |> 
    gt::gt() |> 
    gt::tab_footnote("this is a footnote", locations = gt::cells_column_labels(char))  |> 
    gt::opt_interactive()

Expected result

single footnote should be displayed below the table

Session info

gt version 0.10.1

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions