Skip to contents

For use in making buttons to share a page or connect to your social media

Usage

socialButtons(
  link,
  type = c("share", "connect"),
  image = NULL,
  text = NULL,
  plain = FALSE,
  position = c("left", "right", "inline"),
  text.color = "white",
  facebook = FALSE,
  linkedin = FALSE,
  twitter = FALSE,
  tumblr = FALSE,
  pinterest = FALSE,
  whatsapp = FALSE,
  reddit = FALSE,
  instagram = FALSE,
  blogger = FALSE,
  weibo = FALSE,
  tiktok = FALSE,
  vk = FALSE,
  baidu = FALSE,
  telegram = FALSE,
  youtube = FALSE,
  visit.us = FALSE,
  link.out = FALSE
)

Arguments

link

link address to share

type

type of social button e.g. share or connect

image

image link for pinterest only

text

text link for twitter only

plain

logical. with or without background

position

position of buttons e.g "left","right","bottom","inline"

text.color

text color

facebook

share on Facebook

linkedin

share on Linkedin

twitter

share on Twitter

tumblr

share on Tumblr

pinterest

share on Pinterest

whatsapp

share on Whatsapp

reddit

share on Reddit

instagram

share on Instagram

blogger

share on Blogger

weibo

share on Weibo

tiktok

share on Tiktok

vk

share on VK or VKontakte

baidu

share on Baidu

telegram

share on Telegram

youtube

share on Youtube

visit.us

visit a direct link

link.out

hyperlink to a page

Value

Social links button to be placed on pages

Examples for r2social

More examples and demo pages are located at this link - https://rpkg.net/package/r2social.

Examples


socialButtons("https://shinyappstore.com/",facebook = TRUE)
#> <div class="r2social-link-container r2social-social-left">
#>   <a href="https://www.facebook.com/sharer/sharer.php?u=https://shinyappstore.com/" target="_r2socialxlink">
#>     <div class="social-btn-left" style="background-color:#1877f2">
#>       <div class="r2social-icons-left r2s-ico-facebook"></div>
#>       <p class="order-1 google-font margin-telgram" style="color:white">facebook</p>
#>     </div>
#>   </a>
#> </div>