Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPDATE v0.1.6 #25

Merged
merged 1 commit into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
violet <- "\033[35m"
reset <- "\033[0m"

# Coloring Taiwan in rainbow colors
# Coloring Taiwan
rainbow_taiwan <- paste0(
red, "T",
orange, "a",
Expand All @@ -27,16 +27,16 @@
# Creating the first message
message1 <- paste0(dark_green, "legis", reset, rainbow_taiwan)

# Maximum allowed length
max_len <- 64
num_spaces <- max_len - nchar(message1, type = "bytes") - 4
num_spaces <- max(0, num_spaces)

message1 <- paste0("## ", message1, rep(" ", num_spaces), " ##")

# Second message
message2 <- "## An R package connecting to the Taiwan Legislative API. ##"

# Calculate the required number of spaces to align the two lines
num_spaces <- nchar(message2, type = "bytes") - nchar(message1, type = "bytes") - 6 # -6 to account for the four hashes and two spaces
num_spaces <- max(0, num_spaces)

message1 <- paste0("## ", message1, rep(" ", num_spaces), " ##")

packageStartupMessage(message1)
packageStartupMessage(message2)
}

4 changes: 0 additions & 4 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ home:
links:
- text: Discussion
href: https://github.com/davidycliao/legisTaiwan/discussions
- text: The Center of Legislative Study at Taiwan SCU 台灣東吳大學國會研究中心
href: https://twcongress.weebly.com/2228326371360392600924235.html
- text: legisCrawler 爬台灣立法委員問政專輯的爬蟲小幫手️🕸️
href: https://davidycliao.github.io/legisCrawler/
- text: "Text and Policy Research Group @ UCD"
href: https://text-and-policy.com
- text: "The Connected_Politics Lab @ UCD"
href: https://www.ucd.ie/connected_politics/
- text: "legisTaiwan: An Interface to Access Taiwan Legislative API in R"
href: https://davidycliao.github.io/legisTaiwan/
- text: "LACAN: Legislators, Accountability and Collective Agency"
href: https://projectlacan.wordpress.com/team/
- text: "ParlSpeech: Legislative Speeches in the Key Parliamentary Democracies"
Expand Down