- Notifications
You must be signed in to change notification settings - Fork282
Presentation Ninja 幻灯忍者 · 写轮眼
License
Unknown, MIT licenses found
Licenses found
yihui/xaringan
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
[ʃaː.'riŋ.ɡan]
An R package for creating slideshows withremark.js through R Markdown. The package namexaringan comes fromSharingan, a dōjutsu in Naruto with two abilities: the "Eye of Insight" and the "Eye of Hypnotism". A presentation ninja should have these basic abilities, and I think remark.js may help you acquire these abilities, even if you are not a member of the Uchiha clan.
Please see the full documentation as apresentation here (中文版在此). Theremark.js website provides a quick introduction to the underlying syntax upon whichxaringan builds. If you prefer reading a book,xaringan is also documented inthe R Markdown book (Chapter 7). You can useremotes to install the package:
remotes::install_github('yihui/xaringan')
If you use RStudio, it is easy to get started from the menuFile -> New File -> R Markdown -> From Template -> Ninja Presentation
, and you will see an R Markdown example. Press theKnit
button to compile it, or use the RStudio AddinInfinite Moon Reader
to live preview the slides (every time you update and save the Rmd document, the slides will be automatically reloaded; make sure the Rmd document is on focus when you click the addin). Please see theissue #2 if you do not see the template or addin in RStudio.
The main R Markdown output format in this package ismoon_reader()
. See the R help page?xaringan::moon_reader
for all possible configurations.
Theremark.js Wiki contains detailed documentation about how to format slides and use the presentation (keyboard shortcuts). Thexaringan package has simplified several things compared to the official remark.js guide, e.g. you don't need a boilerplate HTML file, you can set the autoplay mode via an option ofmoon_reader()
, and LaTeX math basically just works (TM). Please note that remark.js does not support Pandoc's Markdown, so you will not be able to use any fancy Pandoc features, but that is probably fine for presentations. BTW, you can use raw HTML when you feel there is something you desperately want but cannot get from the basic Markdown syntax (e.g.knitr::kable(head(iris), 'html')
).
As the package title indicates, this package is designed for ninja. If you are a beginner of HTML/CSS, you may have to stick with the default CSS (which is not bad). The more you know about CSS, the more you can achieve with this package. The sky is your limit.
We have awiki that might help you to use CSS to alter the appearance of your presentation.Make sure to check it out before opening an issue.You might also consider posting simple usage questions onstackoverflow using the#xaringan
tag.We will read all questions with the#xaringan
tag so please be patient if we don't answer within a day 😄
Do not forget to trythe optionyolo: true
underxaringan::moon_reader
in the YAML metadata of your R Markdown document. Big thanks toKarl Broman!
About
Presentation Ninja 幻灯忍者 · 写轮眼