The heading of each card, its charts when panels does not choose them, its key
figures, the days its numbers cover, and the note under its charts.
Arguments
- kind
The card:
"stats","contributions","activity","visitors","actions"or"code".- d
The numbers of the card, from
card_data().
Value
A list: heading, panels, tiles (from the tiles function of the card, such as
card_tiles()), range (the days, as text) and note (NULL for none).
Examples
spec <- rghcard:::card_spec("activity", rghcard:::card_data(example_stats(), 30))
spec[c("heading", "panels", "range", "note")]
#> $heading
#> [1] "GitHub activity"
#>
#> $panels
#> [1] "contribution_types" "weekdays" "top_committed"
#>
#> $range
#> [1] "14 Mar 2019 – 3 Dec 2026"
#>
#> $note
#> [1] "Contributions as the contribution graph of the GitHub profile counts them."
#>