The yarrr R package!

After reading Hilary Parker’s and Hadley Wickham’s great tutorials on building R packages, I’ve decided to build the yarrr package. The package contains all of the datasets, functions, and the game-changing jokes contained in YaRrr! The Pirate’s Guide to R.

To install the package from github, run the following code:

[code language=”r”]
install.packages("devtools")
library("devtools")
install_github("ndphillips/yarrr")
library("yarrr")
[/code]

Once you do, you should be able to see the pirates dataset – a historical survey of hundreds of pirates now in R form for your data analysis pleasures:

[code language=”r”]
View(pirates)
[/code]

P.S. Thanks to Hilary Parker for showing me how to do proper code formatting in wordpress!