<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/radix-for-r-markdown/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://blog.rstudio.com/2018/09/19/radix-for-r-markdown/"> RStudio Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Today we’re excited to announce <a rel="nofollow" href="https://rstudio.github.io/radix/" target="_blank">Radix</a>, a new R Markdown format optimized for scientific and technical communication. Features of Radix include:</p>
<ul>
<li>
<p>Reader-friendly typography that adapts well to mobile devices.</p>
</li>
<li>
<p>Flexible <a rel="nofollow" href="https://rstudio.github.io/radix/figures.html" target="_blank">figure layout</a> options (e.g. displaying figures at a larger width than the article text).</p>
</li>
<li>
<p>Tools for making articles <a rel="nofollow" href="https://rstudio.github.io/radix/citations.html" target="_blank">easily citeable</a>, as well as for generating <a rel="nofollow" href="https://rstudio.github.io/radix/citations.html#google-scholar" target="_blank">Google Scholar</a> compatible citation metadata.</p>
</li>
<li>
<p>The ability to incorporate JavaScript and D3-based <a rel="nofollow" href="https://rstudio.github.io/radix/interactivity.html" target="_blank">interactive visualizations</a>.</p>
</li>
<li>
<p>A variety of ways to <a rel="nofollow" href="https://rstudio.github.io/radix/publish_article.html" target="_blank">publish articles</a>, including support for publishing sets of articles as a <a rel="nofollow" href="https://rstudio.github.io/radix/website.html" target="_blank">Radix website</a>.</p>
</li>
<li>
<p>The ability to <a rel="nofollow" href="https://rstudio.github.io/radix/blog.html" target="_blank">create a blog</a> composed of a collection of Radix articles.</p>
</li>
</ul>
<p>Radix is based on the <a rel="nofollow" href="https://github.com/distillpub/template" target="_blank">Distill web framework</a>, which was originally created for use in the Distill Machine Learning Journal. Radix combines the technical authoring features of Distill with <a rel="nofollow" href="https://rmarkdown.rstudio.com/" target="_blank">R Markdown</a>.</p>
<p>Below we’ll demonstrate some of the key features of Radix. To learn more about installing and using Radix, check out the <a rel="nofollow" href="https://rstudio.github.io/radix/" target="_blank">Radix for R Markdown</a> website.</p>
<h2>Figure layout</h2>
<p>Radix provides many flexible options for laying out figures. While the main text column in Radix articles is relatively narrow (optimized for comfortable reading), figures can occupy a larger region. For example:</p>
<figure>
<img src="https://i2.wp.com/blog.rstudio.com/images/2018-09-17-radix-wider-layouts.png?w=456&ssl=1" data-recalc-dims="1"><br>
</figure>
<p>For figures you want to emphasize or that require lots of visual space, you can also create layouts that occupy the entire width of the screen:</p>
<figure>
<img src="https://i2.wp.com/blog.rstudio.com/images/2018-09-17-radix-fullscreen-layout.png?w=456&ssl=1" data-recalc-dims="1"><br>
</figure>
<p>Of course, some figures and notes are only ancillary and are therefore better placed in the margin:</p>
<figure>
<img src="https://i1.wp.com/blog.rstudio.com/images/2018-09-17-radix-footnotes-and-asides.png?w=456&ssl=1" data-recalc-dims="1"><br>
</figure>
<h2>Citations and metadata</h2>
<p>Radix articles support including citations and a corresponding bibliography using standard R Markdown citation syntax.</p>
<p>In addition, when you provide a <code>citation_url</code> metadata field for your article, a citation appendix that makes it easy for others to cite your article is automatically generated:</p>
<figure>
<img src="https://i0.wp.com/rstudio.github.io/radix/images/citation.png?w=456&ssl=1" data-recalc-dims="1"><br>
</figure>
<p>Radix also automatically includes standard <a rel="nofollow" href="http://ogp.me/" target="_blank">Open Graph</a> and <a rel="nofollow" href="https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards" target="_blank">Twitter Card</a> metadata. This makes links to your article display rich metadata when shared in various places:</p>
<figure>
<img src="https://i0.wp.com/blog.rstudio.com/images/2018-09-17-radix-metadata.png?w=456&ssl=1" data-recalc-dims="1"><br>
</figure>
<h2>Creating a blog</h2>
<p>You can publish a series of Radix articles as either a website or a blog. For example, the <a rel="nofollow" href="https://blogs.rstudio.com/tensorflow/" target="_blank">TensorFlow for R</a> blog is implemented using Radix:</p>
<figure>
<img src="https://i2.wp.com/blog.rstudio.com/images/2018-09-17-radix-blog.png?w=456&ssl=1" data-recalc-dims="1"><br>
</figure>
<p>To learn more, see the article on <a rel="nofollow" href="https://rstudio.github.io/radix/blog.html" target="_blank">creating a blog with Radix</a>.</p>
<h2>Getting started</h2>
<p>To create an <a rel="nofollow" href="https://rmarkdown.rstudio.com/" target="_blank">R Markdown</a> document that uses the Radix format, first install the <strong>radix</strong> R package:</p>
<pre><code>install.packages(&quot;radix&quot;)
</code></pre>
<p>Using Radix requires Pandoc v2.0 or higher. If you are using RStudio then you should use RStudio v1.2.718 or higher (which comes bundled with Pandoc v2.0). You can download the preview release of RStudio v1.2 at <a rel="nofollow" href="https://www.rstudio.com/products/rstudio/download/preview/" target="_blank">https://www.rstudio.com/products/rstudio/download/preview/</a>.</p>
<p>Next, use the <strong>New R Markdown</strong> dialog within RStudio to create a new Radix article:</p>
<figure>
<img src="https://i1.wp.com/rstudio.github.io/radix/images/new_radix_article.png?w=456&ssl=1" data-recalc-dims="1"><br>
</figure>
<p>This will give you a minimal new Radix document.</p>
<p>Then, check out the <a rel="nofollow" href="https://rstudio.github.io/radix/" target="_blank">Radix for R Markdown</a> website to learn more about what’s possible. Happy authoring!</p>

	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://blog.rstudio.com/2018/09/19/radix-for-r-markdown/"> RStudio Blog</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/RCYGwqShVDI" height="1"></a></div>