tweetcheck
{tweetcheck} is a simple R wrapper for the twitter-text JavaScript library which is made available by Twitter under the Apache 2.0 license. This library allows easy parsing of tweet text as well as autolinking and extraction of mentions.
Installation
# Install from CRAN using:
install.packages("tweetcheck")
# Install from GitHub using:
remotes::install_github("wurli/tweetcheck")Demo
Parse tweet information
library(tweetcheck)
tweets <- c(
"This is a first tweet. Simple!",
"This tweet tags @hadleywickham and @_wurli",
"This tweet links {rtweet}: https://docs.ropensci.org/rtweet/",
"Emojis take up two characters