| Type: | Package | 
| Title: | Render a Twitter Status in R Markdown Pages | 
| Version: | 0.1.1 | 
| URL: | https://github.com/guivo/twitterwidget | 
| BugReports: | https://github.com/guivo/twitterwidget/issues | 
| Maintainer: | Guido Volpi <idrivefoxes@gmail.com> | 
| Description: | Include the Twitter status widgets in HTML pages created using R markdown. The package uses the Twitter javascript APIs to embed in your document Twitter cards associated to specific statuses. The main targets are regular HTML pages or dashboards. | 
| License: | MIT + file LICENSE | 
| Encoding: | UTF-8 | 
| LazyData: | true | 
| Imports: | htmlwidgets | 
| RoxygenNote: | 6.1.1 | 
| NeedsCompilation: | no | 
| Packaged: | 2019-06-28 14:35:27 UTC; gvolpi | 
| Author: | Guido Volpi [aut, cre] | 
| Repository: | CRAN | 
| Date/Publication: | 2019-07-10 12:20:04 UTC | 
Create a widget representing a twitter status
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
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
twitterwidget('463440424141459456', list(cards='none'))
Shiny bindings for twitterwidget
Description
Output and render functions for using twitterwidget within Shiny applications and interactive Rmd documents.
Usage
twitterwidgetOutput(outputId, width = "100%", height = "400px")
renderTwitterwidget(expr, env = parent.frame(), quoted = FALSE)
Arguments
| outputId | output variable to read from | 
| width,height | Must be a valid CSS unit (like  | 
| expr | An expression that generates a twitterwidget | 
| env | The environment in which to evaluate  | 
| quoted | Is  |