A general-purpose (static) website built with R Markdown and the blogdown
package.
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.
We can fetch icons like the ones in the menu from different websites.
Set prefix: e.g., fa-github
, ion-social-twitter
, glyphicon-time
.
Enable knitr caching during the development of the site. Rapidly preview changes. Just add the cache = TRUE
chunk option.
htmltools
packageAs an alternative to RStudio, we can generate custom HTML from R code using the htmltools
package.
There are a variety of ways to generate HTML tables, including the knitr::kable
function (Markdown output) and the xtable
package (HTML output).