Shiny application
#ex 1 - to share various links
ui <- fluidPage(
r2social.scripts(),
shareButton(link = "https://rpkg.net", position = "left"),
shareButton(link = "https://shinyappstore.com", position = "inline"),
shareButton(link = "https://shinyappstore.com", plain = T, position = "inline"), #plain style
shareButton(link = "https://obianom.com", position = "right")
)
#ex 2 - to link your page to specific domain online
ui <- fluidPage(
r2social.scripts(),
# to my personal website
connectButton(link = "https://obianom.com", position = "inline",link.out = FALSE, visit.us = TRUE),
# to my Twitter/X page
connectButton(link = "https://x.com/R2Rpkg", position = "inline",link.out = FALSE, x = TRUE)
)
Rmarkdown document
library(r2social)
r2social.scripts()
shareButton(link = "https://rpkg.net", position = "left")
shareButton(link = "https://shinyappstore.com", position = "inline")
shareButton(link = "https://obianom.com", position = "right")