I am unable to run any kind of individual chunks in RStudio markdown documents. Once the green run button is pressed, the clock symbol appears, nothing happens and the running indicator on left side of the code just stops at the first line. What could be the cause of this?
This affects the "Run All Chunks Above" button too. Knit-button and all the related ones work, though.
For example, the following markdown document will not run with "Run current chunk" (The \ is for escaping ``` for this forum post):
Thank you for your message @prubin. Unfortunately, resetting Rstudio's internal state and resetting the project folder did not solve these issues for me.
I updated my R to 4.4.3 with fresh package installations, and the Run Current Chunk problem persists.
I notice that RStudio writes my knitr parameters to params, but then hangs immediately on the first line of my markdown document (in my case library(knitr))
Also, I got a message in my console after restarting R session. I do not know if this is relevant:
Registered S3 methods overwritten by 'htmltools':
method from
print.html tools:rstudio
print.shiny.tag tools:rstudio
print.shiny.tag.list tools:rstudio
Registered S3 method overwritten by 'rmarkdown':
method from
print.paged_df
Additionally, I dug this following error message up from rsession-<username>.log found at Help --> Diagnostics --> Show Log Files. <username> is a change made by me. This line was written when I as I was trying to Run Current Chunk.