Skip to content
R for the Rest of Us Logo

Package Development with R

Argument descriptions and examples

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

Let’s keep working on the documentation for theme_avalanche():

  • Remove @param base_size and replace it with: @inheritParams
    ggplot2::theme_minimal

  • For @param …, add: Additional arguments passed to
    [ggplot2::theme_minimal()]

  • For @return, add: a ggplot theme.

  • For @examples, add two line breaks (make sure the new lines have roxygen comments!. Add this code: ggplot2::qplot(iris$Sepal.Length) + theme_avalanche()

  • Rebuild the documentation and check the help page.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.