print_board: Print nicely formatted Rankings Tables.

Description Usage Arguments Value

Description

print_board takes a table given by tab and prints a simply-formatted version of that table. Tables are narrow enough to be displayed in the Slack app on an iPhone 6.

Usage

1
print_board(tab, r, given_only = TRUE)

Arguments

tab

A character input for the table to be displayed. Can be any of the following:

  • Average Times: "AVERAGES", "AVG", or "A"

  • Personal Bests: "BESTS", "BEST", or "B"

  • Games Played: "GAMES", "GAME", or "G"

  • Monthly Leaderboard: "MONTH", "MO", or "M"

  • All-Time Points: "POINTS", "POINT", or "P"

  • All-Time Wins: "WINS", "WIN", or "W"

r

A data frame version of the "Ranks" worksheet in the Daily Mini spreadsheet.

given_only

A boolean that determines whether or not to only print the player's given name in the table. Defaults to TRUE.

Value

A formatted table.


bochocki/slackrsheets documentation built on May 8, 2019, 9:46 a.m.