Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guivo/twitterwidget
R package able to render Twitter statuses in Rmd pages.
https://github.com/guivo/twitterwidget
r twitter
Last synced: 3 days ago
JSON representation
R package able to render Twitter statuses in Rmd pages.
- Host: GitHub
- URL: https://github.com/guivo/twitterwidget
- Owner: guivo
- License: other
- Created: 2019-06-18T21:50:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T14:44:05.000Z (over 4 years ago)
- Last Synced: 2024-12-29T03:04:27.442Z (about 1 month ago)
- Topics: r, twitter
- Language: R
- Homepage:
- Size: 387 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitter widget for Shiny/flexdashboard
This package contains the definition for a [htmlwidget](https://www.htmlwidgets.org/) widget able to embed a Twitter status within
an R markdown page.The main functionality is to allow to render a card representing a twitter status in HTML page created from R Markdown. The
widget has been tested with regular pages or dashboards, created with Flaxdashboard and Shiny.## Installation
To install the latest stable version you can obtain the package from CRAN:
```r
install.packages("twitterwidget")
```To install the latest development version:
```r
devtools::install_github("guivo/twitterwidget")
```## Usage
The widget at the moment focuses on a very specific goal and it is indeed very easy to use. In Rmd page
you can place the following line where it is more convenient:
```r
library(twitterwidget)optspars <- list(align="center")
twitterwidget('', optpars)
```The last line renders the twitter widget within the HTML page, allowing to visualize a specific status
in the region of the layout controlled by the block.## Known issues
The javascript code doesn't properly render the content using the RStudio viewer, it is required to use
a more complete browser to check the result.## Maintenance Status
The package is not under active development but the developer is alive, in case of issues fixes can be
applied.