Albert Y. Kim
Monday 2016/3/21
Introducing Hadley Wickham, author of the Hadleyverse of packages
(ggplot2
, dplyr
, lubridate
, devtools
) and countless other tools.
One thing we won't be covering in this class is creating R packages: if you have
that you want to share with the world, creating your own R package is the way to go.
If you do want to learn how to write your own R packages, visit http://r-pkgs.had.co.nz/. You have all the tools to follow along.
Two example packages of mine:
resampledata
: contains all
the datasets from my MATH 311 Theory of Statistics classSpatialEpi
: Methods and Data
for Spatial Epidemiology.Any good package is going to have a vignette. As Hadley Wickham describes them:
A vignette is a long-form guide to your package.
- Function documentation is great if you know the name of the function you need, but it’s useless otherwise.
- A vignette is like a book chapter or an academic paper: it can describe the problem that your package is designed to solve, and then show the reader how to solve it.
browseVignettes()
in the consoledplyr