blogdown: Creating Websites With R Markdown.
blogdown: Creating Websites With R Markdown.
复制标题
blogdown:使用 R Markdown 创建网站。
DOI:
--
复制
发表时间:
2017
影响因子:
1.8
通讯作者:
Alison Presmanes Hill
中科院分区:
文献类型:
--
作者:
Yihui Xie;Amber Thomas;Alison Presmanes Hill
The book blogdown: Creating Websites with R Markdown is an excellent read for beginners and advanced users alike. The target audience is R (R Core Team 2018) users of any level interested in creating a website. The book focuses on the R package blogdown (Xie 2018), explaining from beginning to end how to build and publish a website from the comfort of your R console. The name “blogdown” is a play on the word “Markdown,” a markup language with plain text syntax, essentially a way to render HTML from an easy to read, plain text document. It should be noted that while the term “blog” is in the name of the package and book, the final product can be any website, rather than just a blog. For example, a statistician may be interested in taking results generated in R, and publishing them on the web for a larger audience to see. Alternatively, a statistician may be interested in publishing tutorials on particular methods online, or perhaps this statistician wants a space to blog about nontechnical work, a hobby, and would prefer to do so using R. This software allows users to create dynamic documents in R, using R Markdown (Allaire et al. 2018), and seamlessly publish them on the web. This streamlined process is invaluable for statisticians, who are encouraged to share their work with a broad audience, making the dissemination of information simple and pain-free. As is stated at the front of the book, “Life is Short. Write for Eternity”; this book makes it easy to do so. The book begins with an introduction to the blogdown package, explaining how to create and update a local website. Chapter 2 walks through Hugo, the website builder that serves as the basis for blogdown. Chapter 3 explains various ways to publish a website online. Chapter 4 demonstrates how to migrate existing blogs from Jekyll, WordPress, or other systems to blogdown, and finally Chapter 5 details how to bypass Hugo and build sites using other methods. In addition to the wealth of information provided in the main text, the Appendices provide an excellent supplement, including topics such as a brief R Markdown introduction, website basics, how to register a domain name, and topics for advanced users. An excellent feature of this book is its versatility for the reader. For the beginner, it can be treated as a “choose your own adventure” as you can easily get started, going from zero to blog in about an hour, by simply reading Chapter 1 to build a local website and Section 3.1 to publish your site on the web. Chapter 1 is complete with a recommended workflow for beginners in Section 1.7 that requires little knowledge of technical details. The remaining chapters can supplement one’s understanding of various components of the package’s capabilities as needed. The advanced user also can certainly benefit from a read of this book. Chapter 2 in particular contains details on updating and creating Hugo themes, templates, and layouts, even walking through an example of a fully custom theme written from scratch. I have referred to this chapter many times throughout my time as a blogdown user to recall best practices for updating various Hugo components. A few road maps I would suggest for various users: