You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check file extension when identifying files in R to roxygenise #625
If a user does something silly like leave old documented code files in the R folder, but with the extension .oldR, otheR, etc. (such as I sometimes do when rewriting functions) Roxygen will still parse the Roxygen comments in those files, potentially leading to namespace weirdness. I'm guessing there's a regex call to blame that searches for "r$" rather than "\.r$"
Activity
mkoohafkan commentedon Apr 24, 2017
I think it's a simple fix to change this line from
sort_c(dir(file.path(path, "R"), "[.Rr]$", full.names = TRUE))to
sort_c(dir(file.path(path, "R"), "\\.[Rr]$", full.names = TRUE))I'll test it and submit a pull request later.
hadley commentedon Aug 16, 2017
Were you still interested in doing the PR?
mkoohafkan commentedon Aug 17, 2017
Sorry, completely forgot---yes, but I won't be able to do it until September (away from computer)
hadley commentedon Aug 18, 2017
Ok, in that case I'll just do myself since it's so small :)