Other

项目介绍

yihui/xaringan 是一个托管在 GitHub 上的开源项目,主要使用 CSS 编写,采用 Other 许可证,目前获得 1.5k 个 Star、273 次 Fork。

仓库全名
yihui/xaringan
开源许可证
Other
Star 数
1.5k
Fork 数
273
未关闭 Issue
45

README 摘要

xaringan [ʃaː.'riŋ.ɡan] An R package for creating slideshows with remark.js through R Markdown. The package name xaringan comes from Sharingan, 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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

xaringan 用什么语言开发?

主要使用 CSS 编写,采用 Other 许可证,目前有 1.5k 个 Star。

xaringan 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 xaringan 的源码?

可以直接克隆仓库:git clone https://github.com/yihui/xaringan.git,默认分支为 master;安装与运行步骤见仓库 README。

xaringan 最近还在维护吗?

仓库最近一次更新为 2 周前,当前有 45 个未关闭 Issue;Star 数为 1.5k,可作为社区活跃度的参考。

简要分析

热度分
2132
价值分
1000
活跃状态
活跃

语言占比

CSS
HTML
JavaScript
R

Release

README

xaringan

Sharingan

[ʃaː.'riŋ.ɡan]

R-CMD-check CRAN release Codecov test coverage

An R package for creating slideshows with remark.js through R Markdown. The package name xaringan comes from Sharingan, 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 a presentation here (中文版在此). The remark.js website provides a quick introduction to the underlying syntax upon which xaringan builds. If you prefer reading a book, xaringan is also documented in the R Markdown book (Chapter 7). You can use remotes to install the package:

remotes::install_github('yihui/xaringan')

If you use RStudio, it is easy to get started from the menu File -> New File -> R Markdown -> From Template -> Ninja Presentation, and you will see an R Markdown example. Press the Knit button to compile it, or use the RStudio Addin Infinite 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 the issue #2 if you do not see the template or addin in RStudio.

The main R Markdown output format in this package is moon_reader(). See the R help page ?xaringan::moon_reader for all possible configurations.

Slide formatting

The remark.js Wiki contains detailed documentation about how to format slides and use the presentation (keyboard shortcuts). The xaringan 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 of moon_reader(), and LaTeX math basically just works ™. 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 a wiki 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 on stackoverflow using the #xaringantag. We will read all questions with the #xaringan tag so please be patient if we don’t answer within a day :smile:

Do not forget to try the option yolo: true under xaringan::moon_reader in the YAML metadata of your R Markdown document. Big thanks to Karl Broman!

评论

暂无评论