connectButton {r2social} | R Documentation |
Add Connect with us buttons
Description
Buttons for others to connect socially to you
Usage
connectButton(
link,
image = NULL,
text = NULL,
position = c("left", "right", "inline"),
display.inline = TRUE,
link.out = TRUE,
bg.col = NULL,
plain = FALSE,
visit.us = FALSE,
facebook = FALSE,
linkedin = FALSE,
x = FALSE,
tumblr = FALSE,
pinterest = FALSE,
whatsapp = FALSE,
reddit = FALSE,
instagram = FALSE,
blogger = FALSE,
weibo = FALSE,
tiktok = FALSE,
vk = FALSE,
telegram = FALSE,
youtube = FALSE
)
Arguments
link |
the direct link to connect to |
image |
image link only for pinterest |
text |
text link for X |
position |
position of buttons e.g "left","right","bottom","inline" |
display.inline |
TRUE or FALSE if the button should be inline |
link.out |
visit custom link |
bg.col |
background color for the icons. |
plain |
logical. with or without background |
visit.us |
visit custom link |
facebook |
link to an account on Facebook |
linkedin |
link to an account on Linkedin |
x |
link to an account on X |
tumblr |
link to an account on Tumblr |
pinterest |
link to an account on Pinterest |
whatsapp |
link to an account on Whatsapp |
reddit |
link to an account on Reddit |
instagram |
link to an account on Instagram |
blogger |
link to an account on blogger |
weibo |
link to an account on weibo |
tiktok |
link to an account on tiktok |
vk |
link to an account on VK or VKontakte |
telegram |
link to an account on Telegram |
youtube |
link to an account on Youtube |
Value
Connect with me/us button via social links
Examples for r2social
More examples and demo pages are located at this link - https://r2social.obi.obianom.com.
Note
'bg.col' argument is only functional if 'plain' argument is set to false
Examples
connectButton(
link = "//rpkg.net",
visit.us = TRUE,
position = "left")
connectButton(
link = "//www.linkedin.com/in/oobianom",
linkedin = TRUE,
position = "right")
connectButton(
link = "//x.com/R2Rpkg",
x = TRUE, position = "inline")
# NOT styled
connectButton(
link = "//rpkg.net",
visit.us = TRUE,
position = "left")
connectButton(
link = "//www.linkedin.com/in/oobianom",
linkedin = TRUE,
plain = TRUE,
position = "right")
connectButton(
link = "//x.com/R2Rpkg",
x = TRUE, position = "inline")