Closed TiagoOlivoto closed 1 year ago
Oh this is interesting and absolutely not on your side!
If you're curious about what's happening: The logs show these lines:
Error : Problem with standardizing arguments supplied to expression.
Error msg: "object 'numsqr' not found"
Because when the editor parses your app file, it tries to fill in arguments for functions that may be given without names but actually have names. E.g. tabPanel("Empty Tab", grid_container(...))
is equal to tabPanel(title = "Empty Tab", grid_container(...))
. This is so it knows what function arguments are settings like title
as opposed to you wanting to place a child element in tabPanel
with the content "Empty Tab"`.
What I failed to do is account for reactives that become functions but don't have a set of known named parameters. How I avoided this is beyond me but I really appreciate you catching it and providing a super reproducable example.
A fix should be coming soon!
Okay, so Pr #149 will fix this once it's merged. Turns out the problem was even more general than reactives, but any function call that wasn't a function previously known.
Here's the result of running the first app above with the code from the PR.
Okay. PR merged. You should be good to update with remotes::install_github("rstudio/shinyuieditor")
and things should be resolved.
Thanks so much for the clear and helpful issue! It really helps drive the project forward!
Thank you so much for your prompt fix! I'll try it later.... this will save me a lot of code since I was generating the data inside each render***({}). Best regards!
Hi! First of all, thank you so much for the impressive package!
I've noticed an issue when using reactive({}) in my code. In brief, when using reactive({}), for example, to create an internal data.frame and make it available for several procedures, the command shinyuieditor::launch_editor(app_loc = "...") doesn't open the editor. The shiny application, however, works as expected. Here's a minimal example (assuming that this is saved in app.R within the working directory 'myfolder'
Then, running
Do not open the editor, as can be seen in the following PrintScreen
Now, without reactive() it works
Could this be only on my side? Best regards!
Created on 2023-03-18 with reprex v2.0.2