Building and checking a package

As we have seen before, RStudio makes many steps very easy when we want to build our own R package. RStudio also helps us with the finalizing steps of our package. These include building and testing our package and we can find the necessary options to perform these tasks in the build menu of RStudio.

These do not just help us as the final steps, but we also have to build and load our package a lot during the development process. This is the only way we can test all the functions of our package. To test our package, we should stick to the following steps:

  1. Tweak our code and perform changes to our packages code base.
  2. Build our package.
  3. Install the package.
  4. Unload the package.
  5. Reload the package.

RStudio actually performs ...

Get Mastering RStudio – Develop, Communicate, and Collaborate with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.