I would like to find out how I can use python in RMarkdown. I would like to generate a PDF document of python code and text, using R markdown. I also have some R code that I would like to include in different places.
I want to input python code into Markdown and install all of the python packages too.
I have already installed the reticulate package into R and opened it using library(reticulate). I then typed use_python() , but i don't known what to do next or how to find the python on my computer.
I have IDLE installed on my machine, as I have recently learnt to use this rather than any package managers.
I specifically would like to do this with RMarkdown rather than Jupiter notebooks.
Do you have any ideas?
Regards