Learn R Programming

tweetcheck (version 0.1.0)

tweet_autolink: Perform tweet autolinking

Description

Perform tweet autolinking

Usage

tweet_autolink(x)

Value

A character vector giving the HTML which would be used by Twitter if x were posted as a tweet.

Arguments

x

A character vector of tweets to be autolinked

Examples

Run this code
tweet_autolink(c(
  "Tweet with no links",
  "Tweet with a normal link: https://www.r-project.org",
  "Tweet with a mention @hadleywickham",
  "Tweet with a hastag: #RStats",
  "Tweet with a cashtag: $RSTATS"
))

Run the code above in your browser using DataLab