posit-dev / posit-dev/shinylive
Editor error: argument "msg" is missing, with no default
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 251
- Forks
- 25
- Avg merge
- 19m
- Merged PRs (30d)
- 2
Description
The following code works fine in RStudio, but throws an error in the Editor. Something related to shiny:::flushReact...
# "Add marks" button generates 'Error: argument "msg" is missing, with no default' in https://shinylive.io/r/editor/
library(shiny); library(echarty)
ui = fluidPage(
ecs.output("plot"),
actionButton("add", "Add marks")
)
server = function(input, output, session){
output$plot <- ecs.render({
ec.init( xAxis = list(type='category',
data= list('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')),
series.param = list( data=list(150, 230, 224, 218, 135, 147, 260), type='line' )
)
})
observeEvent(input$add, {
e <- ecs.proxy("plot")
e$x$opts$series = list(
markPoint = list(
data = list(
list(coord = c('Tue', 235)),
list(coord = c('Fri', 144))
),
itemStyle = list(color='lightblue')
)
)
e$x$opts$yAxis$max <- 500
e |> ecs.exec('p_merge')
})
}
shinyApp(ui, server)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the linked Shinylive R Editor example and click “Add marks” to observe the missing “msg” error. Start by tracing the reported interaction around shiny:::flushReact and the editor entry point; done means the example updates its plot without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100