简体   繁体   English

在 bslib 包和 Shinydashboard 上

[英]on bslib package and shinydashboard

This a question on bslib, by the way, a great package.顺便说一下,这是一个关于 bslib 的问题,一个很棒的包。

I'd like to know if it is primarily intended for shiny and flexdashborad or it will be also operative with shinydashboard.我想知道它是否主要用于闪亮和 flexdashborad,或者它也可以与闪亮的仪表板一起使用。

Thanks!谢谢!

bslib is not intended to be used with shinydaashboard and should instead be leveraged in conjunction with shiny . bslib不旨在与使用shinydaashboard而应结合被利用shiny Granted, you shouldn't have issues using bslib for flexdashboard , please see the Theming {flexdashboard} writeup .当然,您在flexdashboard使用bslib应该没有问题,请参阅Theming {flexdashboard} 文章 To elaborate more on Shiny, some additional thoughts:为了详细说明 Shiny,还有一些额外的想法:

  • shinydashboard provides new verbs for theming your Shiny apps for use with Bootstrap 3 + AdminLTE v2.4 HTML templates shinydashboard提供了新的动词,用于为您的 Shiny 应用程序设置主题,以便与 Bootstrap 3 + AdminLTE v2.4 HTML 模板一起使用
  • bslib makes it easy to customize "stock" Shiny apps with modern Bootstrap 4 (or 5) themes - This is accomplished through the introduction of Sass variables for use with Shiny and R Markdown and bslib pre-packages Bootswatch themes without the need to load other packages bslib使自定义具有现代 Bootstrap 4(或 5)主题的“库存”Shiny 应用程序变得容易——这是通过引入 Sass 变量来实现的,用于 Shiny 和 R Markdown 和bslib预打包 Bootswatch 主题,无需加载其他包裹
  • The customization of your bslib themes can be further expanded by using Sassy CSS (you'll need a custom *.scss file as opposed to a *.css file)可以使用 Sassy CSS 进一步扩展bslib主题的自定义(您需要自定义 *.scss 文件而不是 *.css 文件)

The RinteRface team have done an excellent job developing the bs4Dash package to solve the problem that I believe you're attempting to solve, ie, using newer Bootstrap themes on top of the shinydashboard framework. RinteRface团队在开发bs4Dash包方面做得非常出色,以解决我相信您正在尝试解决的问题,即在shinydashboard框架之上使用更新的 Bootstrap 主题。 More on the bs4Dash package:有关bs4Dash包的更多信息:

  • shinydashboard is the basis of bs4Dash with 1:1 support so upgrading your old apps to bs4Dash can be accomplished by simply changing library(shinydashboard) to library(bs4Dash) shinydashboard是基础bs4Dash以1:1层的支持,以便升级旧的应用程序,以bs4Dash可以通过简单地改变来完成library(shinydashboard)library(bs4Dash)
  • bs4Dash brings Bootstrap 4 + AdminLTE v3.1 dependencies to your traditional shinydashboard templates bs4Dash将 Bootstrap 4 + AdminLTE v3.1 依赖项引入到您传统的shinydashboard模板中
  • On the Introduction page of the bs4Dash pkgdown site, there is a table comparing the features of shinydashboard , shinydashboardPlus , and bs4Dash (the latter two being developed by the RinteRface team)bs4Dash pkgdown 站点的介绍页面上,有一个表格比较了shinydashboardshinydashboardPlusbs4Dash (后两者由 RinteRface 团队开发)的功能

If you're seeking a package like bslib specifically for customizing the theme and styling of your bs4Dash apps, check out the {fresh} package from the Parisian dreamRs team!如果您正在寻找像bslib专门用于自定义bs4Dash应用程序主题和样式的bs4Dash请查看Parisian dreamRs团队的 {fresh} 软件包

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM