Hello,
I made a post about this on Stackexchange but no one answered.
I'm trying to start using Python and want to use the RStudio IDE as it's what I'm used to.
I cannot seem to get .Rmd code chucks to run all at once, Rmds just run each line one after another. This isn't the case when I click "run current chunk"
Consider a basic loop I found online :
fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
This is what I get when I try to run pressing CTRL+Enter (in R, if I were to make a loop, function, or use magrittr, the entirely of the "chunk"/code block would just run)
Basically, if I run one line, I get those ellipses and it doesn't continue to the end of the for statement.
Whereas when I press "run current chunk" twice, it behaves normally. (2nd part of the screenshot I'm uploading
Any ideas as to what could be causing this? Ideally, I could just run Python code as I would do in R to make nice markdown files.
Meant to post multiple photos but I can't as this is my first topic on here. Thank you for your help!