use c-style folding for r code

seems to work
fixes #1107