-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
66 lines (49 loc) · 1.74 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# unstats
<!-- badges: start -->
<!-- badges: end -->
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 [email protected]: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()
```