#stringr
String manipulation is a critical daily task for bioinformaticians.
Here is a cheatsheet using stringr: rstudio.github.io/cheatsheets...
I probably use stringr::str_replace() once every other day...
to clean up metadata (of course!) #rstats
July 14, 2025 at 1:45 PM
ICYMI: stringr 1.6.0 🧵

This update brings performance gains and new fns for string manipulation in #RStats.

Highlights include: Faster replacements with `str_replace_all()`, 🐫 new case tools to camel, snake, and kebab, case-sensitive str_like(), & more.

Read more: tidyverse.org/blog/2025/11...
January 20, 2026 at 4:10 PM
And stringr 1.6.0 is out too: tidyverse.org/blog/2025/11.... A fairly small release but some handy improvements thanks to tidyverse dev day contributors! #rstats
stringr 1.6.0
This release deprecates `str_like(ignore_case)` and changes the behaviour of `str_replace_all()` for function replacements. It also introduces `str_ilike()` for case-insensitive SQL-like pattern matc...
tidyverse.org
November 4, 2025 at 10:45 PM
Ooooh {stringr} now includes a function for my favorite naming convention, snake_case. ☺️
posit.co Posit @posit.co · Jan 20
ICYMI: stringr 1.6.0 🧵

This update brings performance gains and new fns for string manipulation in #RStats.

Highlights include: Faster replacements with `str_replace_all()`, 🐫 new case tools to camel, snake, and kebab, case-sensitive str_like(), & more.

Read more: tidyverse.org/blog/2025/11...
January 20, 2026 at 4:14 PM
May 7, 2026 at 12:44 AM
Had not realized that R (>=4.0, per StackOverflow) provides selective function loading. Nice way to avoid naming conflicts.

Instead of barfing a package's entire namespace into your environment when you don't need to:

library(stringr, include.only = c("str_extract", "str_remove"))

#rstats
December 11, 2024 at 11:09 PM
Just learned: It's so easy to sort strings that are numbers in proper numerical order with the {stringr} #Rstats 📦's `str_sort()` function and numeric = TRUE!!
x <- c("8", "10", "1", "40")
str_sort(x, numeric = TRUE)
[1] "1" "8" "10" "40"
October 1, 2025 at 4:53 PM
stringr? I don’t ever know her
November 15, 2024 at 6:52 PM
For today's project, I'm having to do a bit of copy-pasting of text from a PDF to add information to a quarto website. Which brings me back to one of my favourite #rstats tricks, and possibly my favourite function name! stringr::str_squish()
January 13, 2025 at 11:47 AM
Tidier.jl brings…
#rstats
dplyr &
tidyr &
ggplot2 &
readr &
readxl &
writexl &
haven &
dbplyr &
purrr &
stringr &
forcats &
lubridate &
rvest &
janitor &
rio &
tidytext
…into #julialang
March 27, 2025 at 11:33 AM
One of these days I'm going to submit a PR to {stringr} with the function:

unfuck_excel()

It takes strings like "May-23" and converts them back into "05-23" because I'm tired of my street numbers being destroyed #rstats
May 23, 2025 at 1:31 AM
Seems like this works?
October 9, 2025 at 3:05 PM
Here's your waste, fraud, and abuse. Spoiled teen, using daddy's credit card. 1/

"...Defense Secretary Pete Hegseth has been blowing through armament stockpiles despite warnings, has the Pentagon close to running out of money,..."

www.rawstory.com/stringr/hegs...
Trigger-happy Hegseth brings Pentagon to brink of going broke: report
The cost of President Donald Trump's war with Iran, where Defense Secretary Pete Hegseth has been blowing through armament stockpiles despite warnings, has the Pentagon close to running out of money,...
www.rawstory.com
July 21, 2026 at 2:11 PM
Can't tell you how many times I google regex and stringr cheatsheet.
June 16, 2026 at 2:56 PM
stringr::str_detect is all you need
October 9, 2025 at 2:55 PM
I think {stringr} is my favorite basic utilities package.
November 25, 2025 at 6:16 PM
Ever need to count the number of characters in a variable (sometimes based on a pattern)? The #rstats {stringr} package is great for that. ✨
cghlewis.github.io/data-wrangli...
August 29, 2025 at 11:09 AM
'We have to get rid of Trump': White House staffers caught on hidden camera trashing him

www.rawstory.com/stringr/whit...
'We have to get rid of Trump': White House staffers caught on hidden camera trashing him
A right-wing journalist released footage of White House officials saying, "We have to get rid of Trump," while secretly being recorded.James O'Keefe, who founded Project Veritas, known for putting out...
www.rawstory.com
May 13, 2026 at 12:03 AM
That feeling when

df %>% filter(stringr::str_detect(df$var1,"[alpha]+")) %>% select(var2,var3) %>% table() %>% chisq.test()

..actually works
August 27, 2024 at 1:46 PM
{stringi} — unsung hero of R work b/c {stringr} gets all the credit for what it is doing

{furrr} — dead simple way to make sure you take full advantage of modern systems
What #rstats packages impress you the most?

Here are mine!

- {targets}: 🔥🔥80% of my code runs there.

- {data.table}: 🚅🤯impressive software engineering (but weird syntax).

- {terra}: 🗺️ made me forget about desktop GIS.

- {future}: 🧙‍♂️🪄 async and parallel wizardry made easy!

Your turn!
January 27, 2025 at 1:37 PM
This was such a delight! eval(parse()) all day any day
December 3, 2024 at 6:47 AM
Oooh I forgot this existed

stringr.tidyverse.org/articles/fro...

That clears up ~ all confusion
From base R
stringr
stringr.tidyverse.org
June 7, 2025 at 9:49 PM