mirror of https://git.sr.ht/~hrbrmstr/widgetcard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 years ago | |
---|---|---|
R | 4 years ago | |
inst/rmarkdown/templates/twittercard | 4 years ago | |
man | 4 years ago | |
tests | 4 years ago | |
vignettes | 4 years ago | |
.Rbuildignore | 4 years ago | |
.codecov.yml | 4 years ago | |
.gitignore | 4 years ago | |
.travis.yml | 4 years ago | |
CONDUCT.md | 4 years ago | |
DESCRIPTION | 4 years ago | |
LICENSE | 4 years ago | |
LICENSE.md | 4 years ago | |
NAMESPACE | 4 years ago | |
NEWS.md | 4 years ago | |
README.Rmd | 4 years ago | |
README.md | 4 years ago | |
widgetcard.Rproj | 4 years ago |
README.md
widgetcard
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 cardgg_preview
: Generate a Twitter Player card preview image from a ggplot2 plottwitter_document
: Standard HTML Document with Twitter Tags
Installation
install.packages("widgetcard", repos = "https://cinc.rud.is")
# or
remotes::install_git("https://git.rud.is/hrbrmstr/widgetcard.git")
# or
remotes::install_git("https://git.sr.ht/~hrbrmstr/widgetcard")
# or
remotes::install_gitlab("hrbrmstr/widgetcard")
# or
remotes::install_bitbucket("hrbrmstr/widgetcard")
# or
remotes::install_github("hrbrmstr/widgetcard")
NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.
Usage
See the vignette.
widgetcard Metrics
Lang | # Files | (%) | LoC | (%) | Blank lines | (%) | # Lines | (%) |
---|---|---|---|---|---|---|---|---|
HTML | 1 | 0.08 | 370 | 0.44 | 31 | 0.19 | 1 | 0.00 |
R | 8 | 0.67 | 370 | 0.44 | 70 | 0.44 | 172 | 0.49 |
Rmd | 3 | 0.25 | 92 | 0.11 | 58 | 0.36 | 175 | 0.50 |
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.