Post

Quick poll: When would you like CRAN to archive your package? A: Umm, never? B: Three days before posit::conf, where you're giving a talk about said package

Oof. If you can, I'd avoid using std::regex -- I've bumped into a variety of issues over the years, and other libraries for regular expressions are typically in better shape.

Thanks Kevin, I appreciate the reply. Do you recommend any particular regex libs? For this bit of code, a simple build matters a lot (having a toml++ dep was even argued over), so maybe doing it without a regex at all would be better.

0 reposts0 likes

Otherwise, depending on how you're using the patterns, you could also just call grep / grepl from R (if you're on the main thread), or include PCRE2 as your own dependency if not (but make sure you compile with -fvisibility=hidden to avoid conflicts).