diff --git a/.gitignore b/.gitignore index feee598a..c0416284 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ inst/examples/**/rsconnect .vscode *.icloud docs + +/.quarto/ diff --git a/R/sysdata.rda b/R/sysdata.rda index 770fa745..55b073f9 100644 Binary files a/R/sysdata.rda and b/R/sysdata.rda differ diff --git a/README.md b/README.md index 1af7de88..02ddda27 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@
- +

@@ -59,7 +59,7 @@ server <- function(input, output) { shinyApp(ui, server) ``` -Starting from v2.0.0, moving to `{bs4Dash}` is rather simple: +Moving to `{bs4Dash}` is rather simple, as we just replace `library(shinydashboard)`: ```r library(bs4Dash) @@ -92,14 +92,6 @@ server <- function(input, output) { shinyApp(ui, server) ``` - -## Upgrading bs4Dash to 2.0.0 -- `{bs4Dash}` is undergoing major rework to make it easier to come from `{shinydashboard}`. The current development version 2.0.0 provides a 1:1 supports, in other word moving from `{shinydashboard}` to `{bs4Dash}` is accomplished by changing `library(shinydashboard)` to `library(bs4Dash)`. - -- `{bs4Dash}` v2.0.0 also provides 1:1 with `{shinydashboardPlus}` to ease compatibility. - -- Apps built with `{bs4Dash}` version <= 0.5.0 are definitely not compatible with v2.0.0 due to substantial breaking changes in the API. We advise users to keep the old version for old apps and move to to the new version for newer apps. - ## Installation ```r @@ -110,8 +102,6 @@ install.packages("bs4Dash") ``` ## Demo - -See a working example on shinyapps.io [here](https://dgranjon.shinyapps.io/bs4DashDemo/). You may also run: ```r diff --git a/index.Rmd b/index.Rmd index e22a613a..8b2c6607 100644 --- a/index.Rmd +++ b/index.Rmd @@ -1,8 +1,11 @@ --- output: github_document +always_allow_html: true --- ```{r setup, include=FALSE} +library(bslib) +library(bs4Dash) knitr::opts_chunk$set(echo = TRUE) ``` @@ -20,9 +23,13 @@ knitr::opts_chunk$set(echo = TRUE)
-
- -
+```{r socialBox-code, eval=TRUE, echo=FALSE} +card( + bs4Dash:::create_link_iframe(bs4Dash:::shinylive_links["inst/examples/showcase"]), + full_screen = TRUE, + style = "margin: 0 auto; float: none;" +) +```
@@ -30,13 +37,8 @@ knitr::opts_chunk$set(echo = TRUE) -
- -```{r, echo=FALSE} -bs4Dash:::app_container("https://dgranjon.shinyapps.io/virtual_patient_v2/", deps = TRUE) -``` -## New users moving to bs4Dash v2.0.0 +## From shinydashboard to bs4Dash Taking the simple `{shinydashboard}` example: @@ -73,7 +75,7 @@ server <- function(input, output) { shinyApp(ui, server) ``` -Starting from v2.0.0, moving to `{bs4Dash}` is rather simple: +Moving to `{bs4Dash}` is rather simple, as we just replace `library(shinydashboard)`: ```r library(bs4Dash) @@ -106,14 +108,6 @@ server <- function(input, output) { shinyApp(ui, server) ``` - -## Upgrading bs4Dash to 2.0.0 -- `{bs4Dash}` is undergoing major rework to make it easier to come from `{shinydashboard}`. The current development version 2.0.0 provides a 1:1 supports, in other word moving from `{shinydashboard}` to `{bs4Dash}` is accomplished by changing `library(shinydashboard)` to `library(bs4Dash)`. - -- `{bs4Dash}` v2.0.0 also provides 1:1 with `{shinydashboardPlus}` to ease compatibility. - -- Apps built with `{bs4Dash}` version <= 0.5.0 are definitely not compatible with v2.0.0 due to substantial breaking changes in the API. We advise users to keep the old version for old apps and move to to the new version for newer apps. - ## Installation ```r @@ -124,7 +118,6 @@ install.packages("bs4Dash") ``` ## Demo -See a working example on shinyapps.io [here](https://dgranjon.shinyapps.io/bs4DashDemo/). You may also run: ```r diff --git a/index.md b/index.md index 2d9aaa91..3809a551 100644 --- a/index.md +++ b/index.md @@ -1,43 +1,45 @@ -# bs4Dash -[![R build status](https://github.com/RinteRface/bs4Dash/workflows/R-CMD-check/badge.svg)](https://github.com/RinteRface/bs4Dash/actions) +# bs4Dash + +[![R build +status](https://github.com/RinteRface/bs4Dash/workflows/R-CMD-check/badge.svg)](https://github.com/RinteRface/bs4Dash/actions) [![version](https://www.r-pkg.org/badges/version/bs4Dash)](https://CRAN.R-project.org/package=bs4Dash) [![cranlogs](https://cranlogs.r-pkg.org/badges/bs4Dash)](https://CRAN.R-project.org/package=bs4Dash) [![total](https://cranlogs.r-pkg.org/badges/grand-total/bs4Dash)](https://www.rpackages.io/package/bs4Dash) -[![Codecov test coverage](https://codecov.io/gh/RinteRface/bs4Dash/branch/master/graph/badge.svg)](https://codecov.io/gh/RinteRface/bs4Dash?branch=master) +[![Codecov test +coverage](https://codecov.io/gh/RinteRface/bs4Dash/branch/master/graph/badge.svg)](https://codecov.io/gh/RinteRface/bs4Dash?branch=master) -> Bootstrap 4 shinydashboard using [AdminLTE3](https://github.com/ColorlibHQ/AdminLTE) +> Bootstrap 4 shinydashboard using +> [AdminLTE3](https://github.com/ColorlibHQ/AdminLTE)
-
- +
+
+ +
+ + + + +

- -
- -
+ -
-
-
- -
-
-## New users moving to bs4Dash v2.0.0 +## From shinydashboard to bs4Dash Taking the simple `{shinydashboard}` example: -```r +``` r library(shiny) library(shinydashboard) @@ -70,9 +72,10 @@ server <- function(input, output) { shinyApp(ui, server) ``` -Starting from v2.0.0, moving to `{bs4Dash}` is rather simple: +Moving to `{bs4Dash}` is rather simple, as we just replace +`library(shinydashboard)`: -```r +``` r library(bs4Dash) ui <- dashboardPage( dashboardHeader(title = "Basic dashboard"), @@ -103,17 +106,9 @@ server <- function(input, output) { shinyApp(ui, server) ``` - -## Upgrading bs4Dash to 2.0.0 -- `{bs4Dash}` is undergoing major rework to make it easier to come from `{shinydashboard}`. The current development version 2.0.0 provides a 1:1 supports, in other word moving from `{shinydashboard}` to `{bs4Dash}` is accomplished by changing `library(shinydashboard)` to `library(bs4Dash)`. - -- `{bs4Dash}` v2.0.0 also provides 1:1 with `{shinydashboardPlus}` to ease compatibility. - -- Apps built with `{bs4Dash}` version <= 0.5.0 are definitely not compatible with v2.0.0 due to substantial breaking changes in the API. We advise users to keep the old version for old apps and move to to the new version for newer apps. - ## Installation -```r +``` r # latest devel version devtools::install_github("RinteRface/bs4Dash") # from CRAN @@ -122,23 +117,25 @@ install.packages("bs4Dash") ## Demo -See a working example on shinyapps.io [here](https://dgranjon.shinyapps.io/bs4DashDemo/). You may also run: -```r +``` r library(bs4Dash) bs4DashGallery() ``` ## Issues -Issues are listed [here](https://github.com/RinteRface/bs4Dash/issues). - +Issues are listed [here](https://github.com/RinteRface/bs4Dash/issues). ## Acknowledgement -I warmly thank [Glyphicons](https://www.glyphicons.com) creator for providing them for free with Bootstrap. +I warmly thank [Glyphicons](https://www.glyphicons.com) creator for +providing them for free with Bootstrap. ## Code of Conduct - -Please note that the bs4Dash project is released with a [Contributor Code of Conduct](https:/contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree toabide by its terms. + +Please note that the bs4Dash project is released with a [Contributor +Code of +Conduct](https:/contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). +By contributing to this project, you agree toabide by its terms.