From 7c44873714a98b7090383768bd853d526aa871fe Mon Sep 17 00:00:00 2001 From: Lextuga007 Date: Mon, 15 Apr 2024 16:54:50 +0100 Subject: [PATCH 1/2] Added golem NHSBSA template --- first-app.html | 436 +++++++++++++++++++++++++++++++------------------ first-app.qmd | 2 +- 2 files changed, 282 insertions(+), 156 deletions(-) diff --git a/first-app.html b/first-app.html index 41ec06b..73916d5 100644 --- a/first-app.html +++ b/first-app.html @@ -427,10 +427,10 @@ ); + + + + + + + + + + +Introduction to Shiny + + + + + + + + + + + + + + + + +
+
+ +

Introduction to Shiny

+

Session - Customising apps

+ +
+
+
+Zoë Turner +
+
+
+ +

Layouts

+

The layouts of Shiny apps are very flexible with customisation using Shiny functions or even HTML code.

+
+
    +
  • Comprehensive documentation can be found for Shiny in R on the Posit website (Python too!).

  • +
  • Galleries can give you and idea of what is possible, along with the code.

  • +
+
+

{bslib} package

+

A package for real-time theming available through CRAN:

+
+
install.packages("bslib")
+
+

There is a talk on bslib and themes by Carson Sievert from the 2020 NHS-R Community conference on YouTube and slides.

+

End session

+
+

+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/customise-app.qmd b/customise-app.qmd new file mode 100644 index 0000000..e6212ec --- /dev/null +++ b/customise-app.qmd @@ -0,0 +1,34 @@ +--- +title: "Introduction to Shiny" +subtitle: "Session - Customising apps" +--- + +```{r} +#| label: "libs" +#| include: false +#| eval: true +#| echo: false +library(countdown) +``` + +## Layouts + +The layouts of Shiny apps are very flexible with customisation using Shiny functions or even HTML code. + +::: {.incremental} +- Comprehensive documentation can be found for Shiny in R on the [Posit website](https://shiny.posit.co/r/articles/build/layout-guide/) ([Python](https://shiny.posit.co/py/) too!). + +- [Galleries](https://shiny.posit.co/r/gallery/) can give you and idea of what is possible, along with the code. +::: + +## {bslib} package + +A package for real-time theming available through CRAN: + +```{r} +install.packages("bslib") +``` + +There is a talk on bslib and themes by Carson Sievert from the [2020 NHS-R Community conference](https://www.youtube.com/watch?v=b9WWNO4P2nY) on YouTube and [slides](https://talks.cpsievert.me/20201112/#1). + +## End session