Skip to content

R session hangs when executing code on an Rmarkdown file served by livecode #6

@bitsandbricks

Description

@bitsandbricks

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:

print("Some R code")

If it works, then try this:

library(ggplot2)

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions