Static website

A general-purpose (static) website built with R Markdown and the blogdown package.

  • A prototype; it could also be deployed in Bitbucket or GitLab.
  • A test bench for htmlwidgets and a framework for integrating interactive packages.
    • It is rather cumbersome to deploy widgets in other websites.
    • The widgets have to generate an HTML fragments and the later are then embedded into a webpage.
  • A notebook: a vade mecum on random topics.

Deploying an R Markdown website

We can learn the basics of the blogdown package for developing web content with or without RStudio using R Markdown and publishing it in a static website for free on GitHub, Bitbucket or GitLab. Other hosting services, such as Amazon S3, are super cheap. Here is a complete list. We can also deploy a blog. Consult this short book on using R Markdown and Hugo.

Icons

We can fetch icons like the ones in the menu from different websites.

Set prefix: e.g., fa-github, ion-social-twitter, glyphicon-time.

Caching

Enable knitr caching during the development of the site. Rapidly preview changes. Just add the cache = TRUE chunk option.

The htmltools package

As an alternative to RStudio, we can generate custom HTML from R code using the htmltools package.

Tables

There are a variety of ways to generate HTML tables, including the knitr::kable function (Markdown output) and the xtable package (HTML output).

Books

We can also write book with R Markdown.