Closed christophsax closed 3 years ago
Would you like to PR that?
Please make sure the regex pattern is like this:
flist <- normalizePath (list.files (file.path (path, "R"),
full.names = TRUE,
pattern = "\\.(r|R|q|s|S)$"))
Those are all of the allowed suffixes - yep, including ".q"
, which exists in a few really old-school packages :astonished:
I have a file
sysdata.rda
in my R folder (which I guess is fine, per here). Thus, I got aninvalid multibyte character in parser
error whenroxygen2::parse_file()
runs:https://github.com/ropensci-review-tools/srr/blob/a0b285d9093095c67f22808e22e93e4f484b9034/R/report.R#L109
It is easy to fix by going for
.R
files only:It may make sense to be a bit more verbose in case something fails, e.g.,: