rstudio / shinyuieditor

A GUI for laying out a Shiny application that generates clean and human-readable UI code
https://rstudio.github.io/shinyuieditor/
MIT License
209 stars 29 forks source link

Interactions with renv #254

Open Upipa opened 7 months ago

Upipa commented 7 months ago

For some reason, using renv in an app project makes the app preview of shinyuieditor extremely slow. I'm not quite sure what to report to make this issue more useful. This is the script that i used to recreate the problem.

shinyuieditor::launch_editor(".")

At this moment, any template selected lead to an editor with an app preview that takes few seconds to load, and you can play with it normally.

renv::init()
renv::install("rstudio/shinyuieditor")

I reinstalled shinyuieditor cause wasn't present in the new library created. The package itself and all the dependencies were simply linked from the cache.

shinyuieditor::launch_editor(".")

at this point the app preview is extremely slow. The only error appears when the editor is closed:

Error: invoke_wrapped: throwing std::runtime_error

but i'm not quite sure that is related to the problem.