Skip to content

Commit

Permalink
Merge pull request #29 from ebmdatalab/milanwiedemann/add-shiny-to-pk…
Browse files Browse the repository at this point in the history
…g-website

Add Shiny App as vignette
  • Loading branch information
milanwiedemann authored Nov 19, 2024
2 parents 71108ff + 9c4afb5 commit 589356e
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
^docs$
^pkgdown$
^app.R$
^rsconnect$
^rsconnect$
^doc$
^Meta$
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
docs
rsconnect/
.DS_Store
inst/doc
/doc/
/Meta/
3 changes: 3 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Depends:
LazyData: true
LazyDataCompression: bzip2
Suggests:
knitr,
rmarkdown,
testthat (>= 3.0.0)
Config/testthat/edition: 3
URL: https://github.com/ebmdatalab/codeusage, https://ebmdatalab.github.io/codeusage/
Expand All @@ -41,3 +43,4 @@ Imports:
shiny,
stringr,
tibble
VignetteBuilder: knitr
4 changes: 3 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ knitr::opts_chunk$set(

<!-- badges: end -->

The goal of `codeusage` is to make yearly summaries of **SNOMED Code Usage in Primary Care** and **ICD-10 and OPCS Code Usage in Secondary Care** in England, published by NHS Digital, available in R for research. The original data is available from NHS Digital at:
The goal of `codeusage` is to make yearly summaries of **SNOMED Code Usage in Primary Care** and **ICD-10 and OPCS Code Usage in Secondary Care** in England, published by NHS Digital, available in R for research.
The interactive [Code Usage Explorer](https://milanwiedemann.shinyapps.io/codeusage/) dashboard provides different options to explore these datasets.
The original data is available from NHS Digital at:

- [SNOMED Code Usage in Primary Care](https://digital.nhs.uk/data-and-information/publications/statistical/mi-snomed-code-usage-in-primary-care)
- [ICD-10 and OPCS Code Usage in Secondary Care](https://digital.nhs.uk/data-and-information/publications/statistical/hospital-admitted-patient-care-activity)
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@

<!-- badges: end -->

The goal of `codeusage` is to make yearly summaries of **SNOMED CodevUsage in Primary Care** and **ICD-10 and OPCS Code Usage in SecondaryvCare** in England, published by NHS Digital, available in R forvresearch.
The interactive [Code Usage Explorer](https://milanwiedemann.shinyapps.io/codeusage/) app allows users to explore the data online.
The goal of `codeusage` is to make yearly summaries of **SNOMED Code
Usage in Primary Care** and **ICD-10 and OPCS Code Usage in Secondary
Care** in England, published by NHS Digital, available in R for
research. The interactive [Code Usage
Explorer](https://milanwiedemann.shinyapps.io/codeusage/) dashboard
provides different options to explore these datasets.
The original data is available from NHS Digital at:

- [SNOMED Code Usage in Primary
Expand Down
2 changes: 2 additions & 0 deletions vignettes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.html
*.R
28 changes: 28 additions & 0 deletions vignettes/code_usage_explorer.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: "Shiny: Code Usage Explorer"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{shiny_code_usage_explorer}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

<style>
.shiny-app-frame {
position: fixed;
left: 0;
top: 50px;
bottom: 0;
right: 0;
}
.shiny-app-frame iframe {
width: 100%;
height: 100%;
border: none;
}
</style>

<div class="shiny-app-frame">
<iframe src="https://milanwiedemann.shinyapps.io/codeusage/">
</iframe>
</div>

0 comments on commit 589356e

Please sign in to comment.