socialButtons {r2social}R Documentation

Customizable social icons

Description

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",
  bg.col = NULL,
  facebook = FALSE,
  linkedin = FALSE,
  x = 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 x only

plain

logical. with or without background

position

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

text.color

text color

bg.col

background color for the icons.

facebook

share on Facebook

linkedin

share on Linkedin

x

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.

Note

'bg.col' argument is only functional if 'plain' argument is set to false

Examples

# styled
socialButtons("https://shinyappstore.com/",facebook = TRUE)

# plain
socialButtons("https://shinyappstore.com/",plain=TRUE, linkedin = TRUE)


[Package r2social version 1.2.1 Index]