I created an Rmarkdown and would like to use it with the editor option : "chunk_output_type: inline".
My issue is that if I fold some codes or just restart the session the codes will became a chaos.
I hope that it will be understandable with the following pic:
Do you know any solution for this problem? (Sometimes it works if I delete the outputs and rerun all, but it takes too much time)