https://github.com/jumpingrivers/shinytest-workshop-app
Golem app for use in the Shiny testing workshop for Shiny In Production 2023
https://github.com/jumpingrivers/shinytest-workshop-app
Last synced: about 1 month ago
JSON representation
Golem app for use in the Shiny testing workshop for Shiny In Production 2023
- Host: GitHub
- URL: https://github.com/jumpingrivers/shinytest-workshop-app
- Owner: jumpingrivers
- License: other
- Created: 2023-09-29T08:48:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T10:40:51.000Z (over 2 years ago)
- Last Synced: 2025-01-15T23:25:24.051Z (over 1 year ago)
- Language: R
- Size: 354 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# unstats
This a golem-based shiny application for exploring UN statistics data about various countries. It
was developed to support a workshop on testing shiny applications using {testthat},
`shiny::testServer` and {shinytest2} in Summer 2023.
## Installation
If you are a workshop attendee, you should download the repository either
- using RStudio
- Go to "File -> New Project"
- Click on "Version Control: Checkout a project from a version control repository"
- Click on "Git: Clone a project from a repository"
- Fill in the URL of the project `https://github.com/jumpingrivers/shinytest-workshop-app.git`
- or using the command line (eg. the 'terminal' window in your RStudio session):
```bash
# 1) Git over SSH:
git clone git@github.com:jumpingrivers/shinytest-workshop-app.git
# or 2) Git over HTTPs
git clone https://github.com/jumpingrivers/shinytest-workshop-app.git
# or 3) Downloading the .zip file from github: https://github.com/jumpingrivers/shinytest-workshop-app
```
Once you have cloned the project, and opened it in RStudio, you can install all the dependencies
used by the package, and required by the workshop by using
```r
install.packages("devtools")
devtools::install(dependencies = TRUE)
```
If you just want to use the application, you can install the development version of unstats like so:
```r
remotes::install_github("jumpingrivers/shinytest2-workshop-app")
```
## Example
To run the app
```r
library("unstats")
run_app()
```