center_string | R Documentation |
Center all lines of a string relative to console width.
center_string(string, remove_last_break = TRUE, display = FALSE)
string |
(character) Some text to center within console. |
remove_last_break |
(logical) Set to TRUE to remove last line break. Defaults to FALSE. |
display |
(logical) Returns string invisibly if FALSE (default), set to TRUE to display returned string |
To removes last line break set removelastbreak
to TRUE.
A string
triangle_string(starwars_intro, display = TRUE) %>% center_string() %>% multi_color(direction = "horizontal", recycle_chars = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.