| title | author | date | output | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Show Your Webcam in R Markdown Presentations |
Yihui Xie |
2015/10/25 |
|
- Insert a
<video>tag in the HTML output of R Markdown viaincludesin YAML - Use JavaScript to get the video stream from your webcam; see
webcam.html
- Compile (R) Markdown to HTML (you can click the button
Knit HTMLorPreview HTMLin RStudio, or callrmarkdown::render('presentation.md')in R) - Install the servr package (https://github.com/yihui/servr)
- In the directory of your presentation, run
servr::httd(), and click the link of the HTML file - If you are in RStudio, make sure you open the presentation in an external Google Chrome browser (by default, the address is http://127.0.0.1:4321)