ScreenShotbutton()不会从闪亮的FormatStyle中呈现stylecolorbar

发布于 2025-02-03 07:24:55 字数 528 浏览 2 评论 0原文

当我想使用shinyscreenshot库进行闪亮页面的屏幕截图时,Colorbar样式不会出现在屏幕上。

最低可重现的示例:

library(shiny)
library(shinyscreenshot)

shinyApp(ui = fluidPage(datatable(iris['Sepal.Length']) %>% formatStyle(1, background = styleColorBar(iris['Sepal.Length'], 'blue')),
                        screenshotButton()
                        ),
         server = function(input, output, session) {})

闪亮的应用程序和屏幕截图

谢谢

When I want to take a screenshot of a Shiny page using the shinyscreenshot library, the ColorBar style does not appear in the screen.

Minimum reproducible example:

library(shiny)
library(shinyscreenshot)

shinyApp(ui = fluidPage(datatable(iris['Sepal.Length']) %>% formatStyle(1, background = styleColorBar(iris['Sepal.Length'], 'blue')),
                        screenshotButton()
                        ),
         server = function(input, output, session) {})

Shiny application and screenshot

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南城旧梦 2025-02-10 07:24:55

如果它可以帮助他人:使用Stéphane建议而不是Shinyscreenshot所建议的捕获软件包,但是如果您想捕获流体,则表现不佳,因此最好在该液体周围添加DIV并捕获Div。

If it can help others: use the capture package as suggested by Stéphane instead of shinyscreenshot, but if you want to capture a fluidRow it will not behave well, so it’s better to add a div around that fluidRow and capture the div.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文