It seems that in RStudio v1.2.1335-1 (Windows 10) I cannot stop code running after run some, several or all chunks. Why I try to stop the code from running (e.g. by clicking the stop button next to the progress bar), the code is still running in the console.
The only solution is to restart RStudio.