I am trying to use RMarkdown to have python and R integrated together in one document.
The objects that I created in R are usable in python, and vice versa, when I use the RMarkdown in Rstudio. But when I knit it to PDF, following behaviour is observed:
x = ‘hello’
If I run this without knitting, it returns the ‘hello’ in the console. But when I knit it to PDF, I can see the output to be
Can anyone please help me with this?