---
title: "r2social R package new version with profile card"
output:
  html_document:
    theme: default
---

```{r}
library(r2social)
r2social.scripts()


```


#### Feature: Profile card with social links

```{r}
profileDisplay1(list(
  a = list(
    name = "Obi Obianom",
    title = "Senior Scientist",
    image = "https://r2social.obi.obianom.com/misc/team3.jpg",
    social = list(
      list(name = "x",
           link = "https://x.com/R2Rpkg"),
      list(name = "linkedin",
           link = "https://linkedin.com/oobianom"),
      list(name = "website",
           link = "https://obianom.com"),
      list(name = "youtube",
           link = "https://youtube.com/R2Rpkg")
    )
  ),
  b = list(
    name = "William Hane",
    title = "Core Developer",
    image = "https://r2social.obi.obianom.com/misc/team1.jpg",
    social = list(list(name = "youtube",
                       link = "https://youtube.com/R2Rpkg"))
  )
))

```
#### Feauture: Social links alon

```{r, results='asis'}

shareButton(link = "http://rpkg.net", position = "left", weibo = TRUE, x = TRUE)
shareButton(link = "http://obianom.com", plain = TRUE, position = "right")
shareButton(link = "http://shinyappstore.com", plain = TRUE, position = "inline")
profileDisplay2(list(
  a = list(
    name = "Obi Obianom",
    title = "Senior Scientist",
    image = "https://r2social.obi.obianom.com/misc/team3.jpg",
    social = list(
      list(name = "x",
           link = "https://x.com/R2Rpkg"),
      list(name = "linkedin",
           link = "https://linkedin.com/oobianom"),
      list(name = "website",
           link = "https://obianom.com"),
      list(name = "youtube",
           link = "https://youtube.com/R2Rpkg")
    )
  ),
  b = list(
    name = "William Hane",
    title = "Core Developer",
    image = "https://r2social.obi.obianom.com/misc/team1.jpg",
    social = list(list(name = "youtube",
                       link = "https://youtube.com/R2Rpkg"))
  )
))
```

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Laoreet sit amet cursus sit amet dictum sit. In pellentesque massa placerat duis ultricies lacus sed.


```{r, results='asis'}
connectButton(link = "http://rpkg.net", visit.us = TRUE, position = "inline")
connectButton(link = "https://www.linkedin.com/in/oobianom", linkedin = TRUE, position = "inline")
connectButton(link = "https://weibo.com/R2Rpkg", weibo = TRUE, position = "inline", display.inline = FALSE)
```

Tristique senectus et netus et malesuada fames. Suspendisse ultrices gravida dictum fusce ut placerat orci nulla. In vitae turpis massa sed elementum tempus egestas sed. Feugiat in ante metus dictum at tempor commodo ullamcorper a.

```{r, results='asis'}
connectButton(link = "https://x.com/R2Rpkg", x = TRUE, position = "inline", display.inline = FALSE)
connectButton(link = "https://reddit.com/R2Rpkg", reddit = TRUE, position = "inline", display.inline = FALSE)
```


Magna eget est lorem ipsum. Erat imperdiet sed euismod nisi porta lorem. Amet justo donec enim diam vulputate ut pharetra sit amet. Quis commodo odio aenean sed adipiscing diam donec. Lacus vestibulum sed arcu non odio. Odio eu feugiat pretium nibh ipsum consequat nisl vel pretium.
