Skip to content
Prev 11939 / 12125 Next

[R-pkg-devel] [External] Re: UTF-8 and raw strings in package code

Thanks, that's helpful. I'll tidy up and submit the patch and que sera, sera.

FWIW my code does already trap parse-errors, and in fact it will check all 5 "symboloids" in your snippet      function(x = y) g(z = w) . The $parseData reports SYMBOL, SYMBOL_SUB, SYMBOL_FUNCTION_CALL, SYMBOL_FORMALS for the different cases, which are all caught by grepl().

I initially did use getParseData() but then realized it wasn't adding anything (except time). Anyway, I'll leave both options in there, de-piped, for people to consider.

cheers
Mark
On Thu, Dec 4, 2025, at 09:20, luke-tierney at uiowa.edu wrote: