blogdown archetype (template)

In a recent blog post I wrote about having a template for blogdown posts. I wanted to know if it was possible to do this and make my life (and others hopefully) easier for writing new blog posts that are ready to go with the features I frequently re-use. In my case, I like using BiocStyle (Oleś, Morgan, and Huber, 2017) for functions such as CRANpkg(), Biocpkg() and Githubpkg(). I also like using knitcitations (Boettiger, 2017) for citing with citep() packages or papers; I use citation() and bib_metadata() to get the necessary information, respectively.

blogdown Insert Image addin

Have you ever tried inserting an image into a blogdown post? Maybe you have, or maybe you tried and gave up. Lets first review the hard way before getting to the solution I contributed. The hard way The process involves copying the target image to the static directory that corresponds to the blogdown post. Lets say that your post is called 2018-03-07-my-new-post.Rmd and lives at content/post/, so it’s full path is content/post/2018-03-07-my-new-post.

R markdown blog template

This blog post is mostly for myself but maybe it’s useful to others. It contains my current R markdown blog template. I initially posted this as a question at StackOverflow. Then I read how much a burden we put in Yihui Xie and decided that my current setup (copy-pasting) works just fine. In any case using blogdown with the RStudio IDE is much simpler than what I used to do in the past with jekyll or with even my prior setup with blogdown.

Creating your Jekyll-Bootstrap powered blog for R blogging

As you might have noticed, I recently decided to move Fellgernon Bit from Tumblr to GitHub. There are a couple of reasons why I made this change. I wanted a more professional-looking blog. There are not many R blogs on Tumblr, and well, long text posts are not really meant for Tumblr. Better code highlighting. I had enabled R code highlighting using the highlighting instructions from Jeffrey Horner (Horner, Part I).

Bmore Biostats is born!

In recent weeks, I have met with a group of students @jhubiostat interested in blogging about their research, tutorials, pieces of R code, among plenty of other subjects. Within this group we had the idea to aggregate our blogs so it would be easier for others to follow us and to easily promote our own blogs to a much larger audience. Basically, do what R-bloggers does but focused on blogs from students at Johns Hopkins Biostatistics.

Analyzing SimplyStatistics visits info

Recently we had to analyze the data of the number of visits per day to There were two goals: Estimate the fraction of visitors retained after a spike in the number of visitors Identify (if any) any factors that influence the fraction estimated in 1. For me it was a fun project in part because I like SimplyStatistics but also because I think that finding the answers to the questions would be interesting and help understand the readers of that blog.

Correctly synching AddThis and Google Analytics social stats

As a minor addition to my previous posts about setting up a blog, I want to detail a bit more how to synchronize your AddThis social sharing statistics (AddThis Analytics) with Google Analytics. The main help file explaining how to do so has been a bit confusing for me. Though, in part that’s because I didn’t read it completely. Plus there were a few things I didn’t know. First, Google Analytics (GA) has two ways in which you can add it to your site: synchronous and asynchronous.

Make it easy for your visitors to suscribe with a burnt RSS feed

Recently I talked about how to set up your own blog and now I’m going to continue by emphasizing the importance of an RSS feed. What is it? Basically it is a unique format in which content from frequently updated sites (like a blog) is syndicated. Web syndication allows you to share the content of your site (blog) to many different sites automatically. This is specially useful for people who are interested in following your blog.

Setting up your blog

Now that I’ve spent time re-doing Fellgernon Bit, I thought it’d be a good time my experience on setting up a socially-connected blog. First of all, you need to choose a blog platform. There are some around like Blogger and WordPress that are widely used and were some of the first platforms. In my case though, I really like how easy is to use. Once you register and have the default blog, go to the customize menu from the Tumblr dashboard and browse the Free Themes.