R Package Template

Clone repository

Setup Package

Add function(s)

Add documentation

Generate online documentation

Add testing

Check entire package

Build package

Continuous integration

Using function from other packages

Add imports

Alternative to imports

Add a vignette

Add a license


A linter is a tool that analyzes code to flag programming and stylistic errors. It is useful to check code for readability and general programming conventions. There is a good linter available that integrates into RStudio: - install with install.packages("lintr") - check that it is available in RStudio: Tools -> Addins -> Brows Addins... -> check that lintr is listed to lint the current open file or package - it's useful to hit the Keyboard shortcuts... at the bottom of this page to define a shortcut to lint the current file, e.g. something like option + shift + L

Releasing your package

CUB-Computational-Tools/2020-rpkg-sebkopf documentation built on Oct. 14, 2020, 3:21 a.m.