I've been testing livecode (which is awesome, by the way) as a tool to share the with my students as I write it. I teach using Rmarkdown, and quickly noticed that my R session sooner or later "hangs" when I execute a code chunk on and .Rmd file thats being served by livecod.
I've been able to reproduce the error running this (interactively, non knitting) as an .Rmd document:
server <- livecode:::serve_file()
At some point the session will become "unresponsive". That is, after trying to execute a code chunk it will show a stopwatch icon, and never finish. No other R instructions can be run after that.
Sometimes it fails immediately, just trying this:
If it works, then try this:
Sometimes it survives up to this point. Just run the the following chunk over and over again and eventually it will fail:
print("Some R code, again")