This strategy will work in a script interpreted as R, it doesn’t have to be a markdown file. E.g., one could do some data wrangling in R, save the objects, run a Python script that does some machine ...