Open bastistician opened 3 years ago
Thanks for tracking this down.
In the interest of backward compatibility I'd prefer if the critiera generators that use match_contents()
exposed a use_bytes
argument, this can be then used in is_r_package
. Would you mind going that extra mile?
pkgload::load_all()
produces warnings of the typewhen used for a latin1-encoded package in a UTF8 locale. These warnings originate from
rprojroot::is_r_package()
searching for"^Package: "
in the DESCRIPTION file. A simple fix is theuseBytes = TRUE
variant ofgrepl()
. I've added a specific test for thematch_contents()
utility function.