uu-2019-day-zero

devtools

Slides


Review

References

Week 0

Week 1

git --version
R.version.string

devtools

For building and working with packages, the devtools package makes our lives a lot easier; these are the tools that the Tidyverse team use themselves.

Our main task this week:

install.packages("devtools")

On Windows, if you get a warning about Rtools not installed, ignore it for now.

To confirm everthing is working:

devtools::has_devel(debug = TRUE)

On Windows, if you do not have Rtools installed, devtools will offer to install it for you. I urge you to accept the offer.

Once Rtools has finished installing, try devtools::has_devel(debug = TRUE) again.

Next, we will install a package from GitHub using devtools:

devtools::install_github("r-lib/usethis", force = TRUE)

If these return without error, you’re done for the week.