yihui / knitr

A general-purpose tool for dynamic report generation in R
https://yihui.org/knitr/
2.37k stars 874 forks source link

Replace several stringr fns with base equivalents #2205

Closed rich-iannone closed 1 year ago

rich-iannone commented 1 year ago

This PR replaces several uses of stringr functions with base equivalents. This is being done to remove the dependency on the stringr package. The stringr functions to be replaced are str_locate(), str_locate_all(), str_match_all(), and str_extract_all().

Fixes: https://github.com/yihui/knitr/issues/1549