I have an Rmd
file with a lot of cached code chunks.
Now I want to keep developing that script using an interactive session to play around and test different solutions before putting the final code in a new chunk of the document.
With a plain R
script, I could just source it to get my interactive session on par with the last line of the script.
However, this would result in (re-)executing all code within the interactive session.
I want to read my Rmd
file into an interactive session ignoring the Markdown part & making use of the existing knitr
cache, ideally without creating any output.
How can I do this?
PS: I am not looking for some IDE-specific way to set this up but for a command that I can run from a simple R session in any terminal emulator.
See Question&Answers more detail:os