Introduction


Accessing packages


Figure 1

a screenshot of the Packages tab in Rstudio
Packages tab

Figure 2

A screenshot of a window dialog in Rstudio, labeled 'Install Packages'
Install prompt

Figure 3

A moving image that shows a user clicking the Install and Restart button in Rstudio and starting the installation process
Build

Getting started


Figure 1

New project menu
New project menu

Figure 2

New project menu
New project menu

Figure 3

New project menu
New project menu

Figure 4

Install and restart
Install and restart

Writing our own functions


Licenses


Testing


Figure 1

Test package
Test package

Figure 2

Check package
Check package

Managing dependencies


Documenting your package


Figure 1

  • In the upper right panel, go to Build More Configure Build Tools. You’ll see a menu like this: Project options

  • Figure 2

  • Tick Generate documentation with Roxygen. A new menu will appear: Project options

  • Figure 3

    Roxygen skeleton
    Roxygen skeleton

    Figure 4

    Document
    Document

    Figure 5

    Help
    Help

    Data


    Figure 1


    Vignettes


    Figure 1

    Knitting an R Markdown document
    Knitting an R Markdown document