shareButton | R Documentation |
Customize social buttons available for sharing of pages
shareButton(
link,
image = NULL,
text = NULL,
position = c("left", "right", "inline"),
text.color = "black",
plain = FALSE,
facebook = TRUE,
linkedin = TRUE,
bg.col = NULL,
x = FALSE,
tumblr = FALSE,
pinterest = FALSE,
whatsapp = FALSE,
reddit = FALSE,
blogger = FALSE,
weibo = FALSE,
tiktok = FALSE,
vk = FALSE,
telegram = FALSE,
visit.us = FALSE
)
link |
the link to share on social media |
image |
the image link to share on social media |
text |
the text to share on social media |
position |
of buttons e.g "left","right","bottom","inline" |
text.color |
text color e.g black |
plain |
logical. with or without background |
facebook |
share on Facebook |
linkedin |
share on Linkedin |
bg.col |
background color for the icons. |
x |
share on Twitter |
tumblr |
share on Tumblr |
pinterest |
share on Pinterest |
whatsapp |
share on Whatsapp |
reddit |
share on Reddit |
blogger |
share on Blogger |
weibo |
share on Weibo |
tiktok |
share on Tiktok |
vk |
share on VK or VKontakte |
telegram |
share on Telegram |
visit.us |
share on custom link |
Share link button via social media platforms
More examples and demo pages are located at this link - https://r2social.obi.obianom.com.
'bg.col' argument is only functional if 'plain' argument is set to false
# Basic examples
# Let's make r2 social great again!
shareButton(link = "http://rpkg.net", position = "left")
shareButton(link = "http://obianom.com", position = "right")
shareButton(link = "https://shinyappstore.com/", plain = TRUE, position = "inline") #plain styling
shareButton(link = "https://shinyappstore.com/", plain = FALSE, position = "inline") #beautified
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.