etricsgraphics解决针对闪亮应用程序的显式widge

etricsgraphics解决针对闪亮应用程序的显式widge

本文介绍了如何使用metricsgraphics解决针对闪亮应用程序的显式widget ID警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个闪亮的应用程序,该应用程序使用度量图形来创建直方图.运行应用程序时,出现以下错误消息:

I've built a shiny application that uses metricsgraphics to create histogram. When running the application I get the following error message:

output$histPlot(...)中的警告: 忽略显式提供的小部件ID"mjs-acd1c2bc860bf1a81780a7603d6f7b";闪亮不使用它们

Warning in output$histPlot(...) : Ignoring explicitly provided widget ID "mjs-acd1c2bc860bf1a81780a7603d6f7b"; Shiny doesn't use them

我看到的唯一讨论此警告的地方是在metricsgraphics的问题页面上,但未提供解决方案.我的应用可以使用以下命令运行:

The only place I've seen this warning discussed is on the issues page for metricsgraphics but no solution is provided. My app can be run with the following command:

shiny :: runGitHub(repo ='mihiriyer/mental')

shiny::runGitHub(repo = 'mihiriyer/mental')

我的代码位于此处: https://github.com/mihiriyer/mental/blob/master/app.R

该应用程序似乎可以正常运行,因此,这只是一个警告,因此甚至应该担心吗?我是否应该隐瞒消息并继续前进?

The app seems to work fine and so should even be worried since it is just a warning? Should I just suppress the message and move on?

推荐答案

显然,除了禁止显示警告消息外,还不能做很多其他事情.在Github上发布我的问题,我的答复是在这里: https://github.com/hrbrmstr/metricsgraphics/issues/49

Apparently not much can be done other than suppressing the warning message. Posted my question on Github, the response I got is here:https://github.com/hrbrmstr/metricsgraphics/issues/49

基本上,可以将以下行添加到服务器功能部分,并且警告将被取消:

Basically, one can add the following line to the server function section and the warnings will be suppressed:

options(warn = -1)

这篇关于如何使用metricsgraphics解决针对闪亮应用程序的显式widget ID警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 04:29