https://github.com/jdtrat/buttonmakr
https://github.com/jdtrat/buttonmakr
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jdtrat/buttonmakr
- Owner: jdtrat
- License: other
- Created: 2020-11-17T20:40:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-17T21:26:59.000Z (over 4 years ago)
- Last Synced: 2024-08-13T07:13:47.110Z (8 months ago)
- Language: R
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - jdtrat/buttonmakr - (R)
README
# buttonmakr
This is a learning project to create buttons similar to those on seen with iMessage, Facebook, or Twitter, that preview the metadata for different links. It is still a work in progress, but the package can be installed as follows:
```r
devtools::install_github("jdtrat/buttonmakr")
library(buttonmakr)```
Its main functions are `get_metadata()`, which takes in a url and returns a tibble containing [og metadata properties](https://ogp.me), and `create_button_html()`, which takes in the metadata tibble and generates the HTML code for a button displaying the associated image and title. The button generated will open the url when clicked.
I've created a demo Shiny app for this [here](https://jdtrat-apps.shinyapps.io/button_maker/). The Shiny app code is [here](https://github.com/jdtrat/buttonmakr/tree/master/button_maker).