Closed dougedmunds closed 11 years ago
Currently I do not have a reliable method to detect comments; in this case, formatR sees #
as a comment instead of a literal character in a string. To solve the problem, you can use double quotes around the character string, i.e. "Avg Pos,Max Pos,Min Pos,# Periods"
I think it will be solved nicely when R 2.16.0 comes out next year. Thanks for the report.
Doesn't seem like R 3.0 fixed the problem. This showed up at Stackoverflow today: http://stackoverflow.com/questions/17307806/knitr-doesnt-seem-to-gracefully-tidy-hashes-e-g-a/17309254#17309254
Thanks for coming back to this issue. R 3.0 has what I need (getParseData
), but I just do not have enough time for this issue at the moment.
This has been fixed under R 3.0.1 in the latest devel version here.
Attempted to run tidy.dir() on code from https://github.com/systematicinvestor/SIT/tree/sit.gz.
Contains one long file "code.r" (12000+ lines).
Errors out with this:
There is no " %InLiNe_IdEnTiFiEr% " in the code.
The real text of the line it hangs on reads:
located at approximately line 8980.
(note, the author of that code is actively updating it, so the line number may change).