Today I Learned: ____

trinker

ggplot2orBust
TIL about the strtrim function...used to use substring(1, n)...not a huge savings but cool and semantically easier to think about:

Code:
x <- 'Dason is a horrid human being (or bot) devoid of any type of empathy for others.  He has amassed his fortune at the expense of all that is holy and sacred.  He speaks with forked tongues'

paste0(trimws(strtrim(x, 60)), '...')
## [1] "Dason is a horrid human being (or bot) devoid of any type of..."

jamesmartinn

Member
TIL i use shiny modules. I have a dashboard that has 4 to 5 pages (representing subgroups), and on each page the elements (graphs, text, tables) are all the same. Made for a good use case.

To slightly complicate the matter, I also have a reactive data set powering all the pages (built off a date range filter) and other inputs that go into the calculation of the elements. Took some googling but i figured out how to get them to all play nicely, though I really need to review the code.