Make `event_data` warning suppressable?
未关闭
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi plotly devs,
The current implementation for event_data makes it such that the warning will display in nearly all instances where UI is rendered dynamically (such as in a shiny app). The warning is attached as a callback to the onFlush event which prevents it from being suppressed with suppressWarnings.
Can either:
- A vignette be provided for how to implement
event_datawith dynamically rendered UI in a modular shiny app without triggering the warning? -OR- - An argument be provided to
event_datato suppress the warning?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 R/shiny.R 约第 151 行开始,跟踪在动态渲染 Shiny UI 时 event_data 如何将警告附加到 onFlush 事件上。比较所要求的两种结果:在 vignette 中记录模块化用法,或提供一个能够抑制警告的 event_data 选项;完成的标准是实现其中一种方案并验证其行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization, frontend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100