twitterwidget: Create a widget representing a twitter status

Description Usage Arguments Examples

View source: R/twitterwidget.R

Description

The method create a widget able to embed a twitter status within a Rmd page. The main parameter is the status ID, other parameters will be passed to the factory method, according the official documentation: https://developer.twitter.com/en/docs/twitter-for-websites/embedded-tweets/guides/embedded-tweet-parameter-reference

Usage

1
2
twitterwidget(twid, pars = NULL, width = NULL, height = NULL,
  elementId = NULL)

Arguments

twid

ID of the twitter status, it should be passed as a string

pars

list() containing the optional parameters passed to request the rendering of the embedded tweets.

width

width of the widget

height

height of the widget

elementId

ID of the HTML element

Examples

1
twitterwidget('463440424141459456', list(cards='none'))

twitterwidget documentation built on July 10, 2019, 5:05 p.m.