如何在闪亮的应用程序中突出显示活动代码? [英] How do I highlight active code in a shiny app?
本文介绍了如何在闪亮的应用程序中突出显示活动代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在更改代码时突出显示闪亮的应用程序代码?
IS there a way to highlight shiny app coding when the code is changed?
例如,Hello Shiny"示例应用:
For example, the "Hello Shiny" example app:
library(shiny)
runExample("01_hello")
创建一个包含应用代码的应用.每次执行操作时都会突出显示此代码(突出显示受影响的代码).
creates an app that includes the app code. This code is highlighted every time an action is executed (highlighting the code that is impacted).
如何使用我自己的应用执行此操作?
推荐答案
也许这会有所帮助:
shiny::runApp(display.mode="showcase")
您可以在此处获得更多信息.见展示模式
You can get more information about this here. See Showcase Mode
如果你直接使用 shinyApp()
,试试这个:
If you're using shinyApp()
directly, try this:
shinyApp(ui, server, options = list(display.mode='showcase'))
这篇关于如何在闪亮的应用程序中突出显示活动代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文