https://github.com/yonicd/shinycarbon
shiny wrapper for carbonate R package
https://github.com/yonicd/shinycarbon
r rstudio-addin shiny-apps
Last synced: 3 months ago
JSON representation
shiny wrapper for carbonate R package
- Host: GitHub
- URL: https://github.com/yonicd/shinycarbon
- Owner: yonicd
- License: other
- Created: 2020-03-03T00:37:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T03:07:36.000Z (about 5 years ago)
- Last Synced: 2025-01-03T10:51:33.823Z (3 months ago)
- Topics: r, rstudio-addin, shiny-apps
- Language: R
- Homepage:
- Size: 455 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - yonicd/shinycarbon - shiny wrapper for carbonate R package (R)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
out.width = "100%"
)
```# shinycarbon
[](https://www.tidyverse.org/lifecycle/#experimental)
The goal of `shinycarbon` is to create a shiny wrapper to make it easy to share {carbonate} images on twitter.
## Installation
You can install using:
```r
remotes::install_github("yonicd/shinycarbon")
```## Loading the App
```{r example,eval=FALSE}
library(shinycarbon)
```There are two ways to load the app
Command line
```{r, eval=FALSE}
shinycarbon::run_app()
```Addin
```{r,echo=FALSE,out.width = "40%"}
knitr::include_graphics('inst/addin.png')
```## Preloading Script
If you are in RStudio you can pre-load the app with script by highlighting text and running the addin.
## Layout
The basic app layout is pretty straight forward:
- Top left is a `shinyAce` editor to put in the code you want to send to `carbon.js` using the button above it.
- Bottom left is where the images come out to preview them in a `slickR` carousel.
- Remember only 4 images per tweet, more images will automatically be converted into a gif
- Bottom right is a button to import images from you local machine into the carousel
- Handy for capture screen and what not...
- Top right is where you construct your tweet for `rtweet`.
- The app uses the System Variable 'TWITTER_SCREEN_NAME' as the tweeting handle.
- You can reply to tweet by inserting the tweet id into the 'enter reply status id' field
- Write your post into the text area, don't worry about handles for a reply that is taken care for you under the hood.
- Your character count is shown above the text area for convenience. If there are reply handles that are added the character count will take them into account.Here is a screenshot:
```{r,echo=FALSE}
knitr::include_graphics('inst/app.png')
```