An interactive R tutorial