Publishing Articles

Sharing Radix articles online

Table of Contents

This article covers the various ways you can publish Radix articles, including:

Note that it’s also possible to publish collections of Radix articles as a website (see the article on publishing websites for additional details).

Standalone HTML

When you render a Radix article using R Markdown, all of the content required to render the article (images generated by R plots, required CSS and JavaScript, etc.) are bundled into a single HTML file.

Often the simplest way to share a Radix article is to share this HTML file using the same means you use to share other document types like spreadsheets, presentations, and PDFs. You can send the article as an E-mail attachment or uploading it to Dropbox or any other file sharing service.

This type of sharing is suitable for private communications to small groups. If you want to make your article available more broadly the following sections cover various ways to do that.

RPubs & RStudio Connect

RPubs is a free service from RStudio for sharing documents on the web. RStudio Connect is a server product from RStudio for secure sharing of applications, reports, and plots.

You can publish to RPubs or RStudio Connect directly from within the R Markdown document preview window by clicking the Publish button:

Note that all documents published to RPubs are publicly visible, so you should only publish content you want to share publicly.

Unlike RPubs, RStudio Connect is a server that you run inside an organization, so is suitable for publishing content that you only want visible within your organization’s network.

GitHub Pages

GitHub Pages is a service that lets you publish a website from any GitHub repository. While the service supports publishing full websites, it’s also a perfectly suitable place to publish a single Radix article.

Here are the steps required to publish a Radix article to GitHub Pages:

  1. Create a new Git repository that will be used to host your article.

  2. Configure your repository to publish the contents of the master branch (you can do from the Settings page for the repository):

  3. Create a file named .nojekyll in your repository (this is required to disable some processing of HTML files that GitHub does by default). You can do this with the following code:

  4. Create a Radix article named index.Rmd within the repository (using this name will allow your article to be served as the default web page for the repository).

  5. Add appropriate metadata to the article. The article should at a minimum include title and description fields, and should also specify self_contained: false (this will make the article load faster and will enable you to add a preview image for sharing the article on Slack, Twitter, etc.):

    title: "Radix for R Markdown"
    description: |
      Scientific and technical writing, native to the web
        self_contained: false
  6. Write and render your article using R Markdown.

  7. Push the article (including the HTML file generated when you rendered it) to GitHub. Your article is now published!

GitHub Pages are served on the domain (with your GitHub account as a sub-domain). For example, if your GitHub username is jsmith and your repository is named radix-article then the article will be available at

Other services

Note that any web server or web host capable of hosting a static website can equally well host a single Radix article. See the article on publishing Radix websites for details on publishing articles on a variety of other services including Netlify, Firebase, Site44, and Amazon S3.


If you see mistakes or want to suggest changes, please create an issue on the source repository.


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. Source code is available at, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".