r2social R package: Seamlessly include social sharing and connect buttons on a shiny app or rmarkdown

Obinna N. Obianom (pseudonym: William Hane)


The goal of this new R package is to provide functions that allow the inclusion of share and connect buttons on any page. This has been tested in Rmarkdown documents as well as on simply Shiny applications. See the examples folder of this package.

Constitutes the following features:

Installation and Library Attachment

The r2social package is available on CRAN and can be installed as shown below


Attach library



The r2social can be used within the R Markdown document or in Shiny applications as shown below

Include the scripts and stylesheets for Rmarkdown


Full examples and documentation