-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Description
It would be nice if styler could not only format plain .R files, but also .Rmd files.
Code Chunks
This could probably by implemented by changing transform_files, i.e. adding a function transform_lines_rmd_chunk. Main steps are:
- first
read read_lines_enc - look for regex
^´´´\\{r.*\\} *$and^``` *$ - transforming lines between these expressions while leaving everything else unchanged
- write back with
write_lines_enc
@krlmlr maybe this functionality fits even in the utf8 package?
Plain Text
- Line breaks if text is longer than 80 characters
- punctuation (i.e. space after
. , ? !ect.)
The second point might be out of the scope of the package though...
jonmcalder, DougManuel and Michael-Stevens-27