Skip to content
Prev 11924 / 12125 Next

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

On Mon, 1 Dec 2025, Mark Bravington wrote:

            
You still have to handle it in a way that is consistent with the rest
of the checking process, which I believe means catching the error and
returning FALSE. I would use tryCatch for that.
It isn't quite right though: symbols can appear in a few other
places. Look at

     function(x = y) g(z = w)

I believe you are only picking up two of the five symbols you want.

Also you can simplify your code by using getParseData. I would also
avoid using the pipe operator since it isn't consistent with the
coding style in the file you are proposing to change.
It is worth putting together a clean and well-tested patch that can be
easily reviewed and tested by others. There are folks who spend much
more time than I do on the QC code and may see reasons why going down
this road is a bad idea, or how to do this better, but we'll see.

Best,

luke