Use stringr to avoid errors with emoji. by yutannihilation · Pull Request #1050 · rstudio/rmarkdown

Fixes #1038 This PR replaces the use of base gregexpr() and regmatches<-() with stringr::str_replace_all() to avoid errors with emojis reported on #1038. If my guess is right, adding stringr packag...