2

Is there anyway of using code folding in an RNW knitr file that contains R and latex code? In particular to be able to fold the R code chunks. I am using polymode so as this changes the mode as you navigate in and out of chunks, this interferes with standard solutions for code folding.

About all I can find for this particular situation is this question on stackoverflow, but it is now quite old. Is there any improvements on this?

0

Yafolding may be able to handle this https://github.com/zenozeng/yafolding.el but I don't have a working/detailed setup/config example yet.

1
  • Thank you for the suggestion. I will try this out and get back with my findings.
    – mjb
    Aug 4 '17 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.