ScreenShotbutton()不会从闪亮的FormatStyle中呈现stylecolorbar
当我想使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它可以帮助他人:使用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.