https://github.com/yonicd/shinycovr
https://github.com/yonicd/shinycovr
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yonicd/shinycovr
- Owner: yonicd
- License: other
- Created: 2020-05-21T10:34:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T11:36:27.000Z (almost 5 years ago)
- Last Synced: 2025-01-03T10:51:33.609Z (about 2 months ago)
- Language: R
- Size: 86.9 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - yonicd/shinycovr - (R)
README
---
output:
md_document:
variant: markdown_github
always_allow_html: yes
---```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "tools/figures"
)
```# shinycovr
The goal of shinycovr is to create coverage statistics for shiny apps testing.
## Example
This is a basic example which shows you how to solve a common problem:
```{r example}
x <- ShinyTester::ShinyHierarchy(system.file('shinyexample',package='shinycovr'))
```
```{r}
x$x$edges
x$x$nodes
```### Calculating Possible reactive paths
Using the ShinyTester output object
```{r}
shinycovr::shiny_path(x)
```Using an igraph object
```{r}
x2 <- igraph::graph_from_data_frame(x$x$edges,directed = TRUE)plot(x2)
shinycovr::shiny_path(x2)
```Using an adjency matrix object
```{r}
x3 <- igraph::as_adj(x2)x3
shinycovr::shiny_path(x3)
```