And there's the R Manuals: https://cran.r-project.org/manuals.html The most relevant one (for this purpose) is "Writing R Extensions". [[alternative HTML version deleted]]