Tools to Enable Easier Content Embedding in Tweets

Description

Tools to Enable Easier Content Embedding in Tweets

What’s Inside The Tin

The following functions are implemented:

  • card_widget: Turn an htmlwidget into a web deployable, interactive Twitter card
  • gg_preview: Generate a Twitter Player card preview image from a ggplot2 plot

Installation

install.packages("widgetcard", repos = "https://cinc.rud.is/")
# or
devtools::install_git("https://git.sr.ht/~hrbrmstr/widgetcard")
# or 
devtools::install_gitlab("hrbrmstr/widgetcard")
# or (if you must)
devtools::install_github("hrbrmstr/widgetcard")

Usage

See the vignette.

widgetcard Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 6 0.75 321 0.87 59 0.6 125 0.54
Rmd 2 0.25 50 0.13 39 0.4 108 0.46

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.