Can I increase the size or width of a line?
For example, the below is wrapped after the second 'a', and I'd like it all to be on one line.
#install.packages("Rfiglet")
library(Rfiglet)
figlet('starwars',
respect.linebreaks = FALSE,
smush = TRUE,
font = "starwars")
_______.___________. ___ .______ ____ __ ____ ___
/ | | / \ | _ \ \ \ / \ / / / \
| (----`---| |----` / ^ \ | |_) | \ \/ \/ / / ^ \
\ \ | | / /_\ \ | / \ / / /_\ \
.----) | | | / _____ \ | |\ \----. \ /\ / / _____ \
|_______/ |__| /__/ \__\ | _| `._____| \__/ \__/ /__/ \__\
.______ _______.
| _ \ / |
| |_) | | (----`
| / \ \
| |\ \----.----) |
| _| `._____|_______/
options(width = 999) didn't change anything.
Deciding if the text has to be printed in 1 line or 2 line is decided from
figletfunction internally most probably based on number of characters in the input.figletfunction returns a character vector, we can achieve what we want by using a hack. When the output is spread across 2 lines we can combine the two lines usingpasteand change the class back to'figlet'.