Starting with blogdown

[This article was first published on R on R for Biology, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

So it started… again. This is not my first attempt to create a blog for data science and R, but previously I was trying with Jekyll pages. It looked very nice after the long struggle of setups, I was very happy with it. I used to post my R class presentations there for easy access to attendees.

There was only one very bothering thing, there was no possibility to use R markdown directly, I always had to transfer to .md files, dealing with static images and so. Since I use RStudio continuously to my work, I decided to try Yihui Xie’s blogdown package with Hugo. I have to say, the installation was very seamless, just a few lines of code in R and a little git and viola, it works.

devtools::install_github('rstudio/blogdown')
blogdown::install_hugo()
blogdown::new_site()

Generally that’s all to initialize a blog. Of course there is much more to do, you have to choose your theme, configure the config.toml file, creating a github repository (if you wish to use github pages) and so on. If you really interested to make your own blog with Hugo and Blogdown, I can recommend this post from Amber Thomas, which was really helpful for me.

Also check Yihui Xie and his github repos, like knit, bookdown and xaringan. If you are documenting your research/analysis, making a book, presentation or a blog, these can be very handy. He also writes a book on blogdown, however this is far from finished.

Also from now I would like to focus on more detailed data science workflows, especially used in biology, instead of starting from the the very basics of R. See you soon in the next posts!

To leave a comment for the author, please follow the link and comment on their blog: R on R for Biology.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)