Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yonicd/snapper

snap images of html objects using only JavaScript in shiny apps
https://github.com/yonicd/snapper

html2canvas r shiny

Last synced: 27 days ago
JSON representation

snap images of html objects using only JavaScript in shiny apps

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%"
)
```

# snapper

snap images of html objects in Shiny apps using `canvas2html` JavaScript library

## Installation

```r
remotes::install_github('yonicd/snapper')
```

## Where it can be useful

- `selenium`-less shiny app testing
- Take a snap of any element in the page using `jQuery` strings
- offline script image sharing (a la `carbon`)
- Implemented in [carbonace](https://github.com/yonicd/carbonace)

## Code of Conduct

Please note that the snapper project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.