How to Document a Function in Your R Package
Function documentation is one of the most important parts of an R package. Here we see how to document functions using so-called roxygen tags. We also use RStudio functionality to automatically enable roxygen documentation and to insert a roxygen skeleton so that we have to remember few details and just fill in our documentation text at the appropriate places. Our example function randomly selects a song from a specified artist from a billboard hot 100s dataset, provided by the billboard package by Mikkel Freltoft Krogsholm. Contact me, e. g. to discuss (online) R workshops / trainings / webinars: LinkedIn: / wolfriepl Twitter: / statistikindd Xing: https://www.xing.com/profile/Wolf_Riepl Facebook: / statistikdresden https://statistik-dresden.de/kontakt R Workshops: https://statistik-dresden.de/r-schulu... Blog (German, translate option): https://statistik-dresden.de/statisti... Playlist: Music chart history • Music Chart History

How to Include Data in Your R Package

Creating Your First R Package in 2 Minutes in RStudio!

Building R packages with devtools and usethis | RStudio

Why and How to Include a Vignette in Your R Package

Why Aliens Would NEVER Invade Africa

Development of a example R package (CC266)

How to get started with the bookdown package

I Think They Are Lying To You

How to set up Automated Tests for Your R Package using testthat

How to Create a Package in R (Example) | Ft. @StatistikinDD | RStudio Tutorial for Your Own Library

Making R 300x times faster!

Adding documentation to your R function with roxygen2
![Managing complicated research workflows in R with {targets} [February 2025]](https://i.ytimg.com/vi/qTo6riXn6sw/hqdefault.jpg?sqp=-oaymwE9CNACELwBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Af4JgALQBYoCDAgAEAEYGyBNKH8wDw==&rs=AOn4CLCj46OceyqJa-bPU8Km-k_nHHoQOA)
Managing complicated research workflows in R with {targets} [February 2025]

How to write your own R package

R Markdown Users: Why you should switch to Quarto NOW

LAWYER: If Cops Ask "Where Are You Coming From?" - Say These Words

How to Format Your R Code With {styler}

How to Create Your Own Package in RStudio

