gadenbuie / tiktokrmd

Embed TikTok Videos in R Markdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tiktok videos don't render in xaringan

jvcasillas opened this issue · comments

I am trying to include some tiktok videos in some slides and I am getting what looks like a a blockquote w/ no video. Reproducible example here:

---
title: "Presentation Ninja"
subtitle: "⚔<br/>with xaringan"
author: "Yihui Xie"
institute: "RStudio, PBC"
date: "2016/12/12 (updated: `r Sys.Date()`)"
output:
  xaringan::moon_reader:
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
---

    ```{r, tiktok, echo=F}
    library("tiktokrmd")
    tt_url <- "https://www.tiktok.com/@chelseaparlettpelleriti/video/6811647290709757189"
    tt <- tiktok_embed(tt_url)
    tt
    ```

And this is the output:

Screen Shot 2021-03-16 at 18 30 15

This sounds like it might be related to a recent change in rmarkdown, can you try the suggestion in this comment in yihui/xaringan#293?

It should also be fixed with the latest dev version of xaringan, which you can install from GitHub with remotes:

remotes::install_github("yihui/xaringan")

I'm going to close this issue but please feel free to re-open it if the above doesn't solve your issue.

That did it. Thank you once again.