Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yihui/rmini

A minimal R package with examples of most common components
https://github.com/yihui/rmini

Last synced: 15 days ago
JSON representation

A minimal R package with examples of most common components

Awesome Lists containing this project

README

        

# A minimal R package

[![Build Status](https://travis-ci.org/yihui/rmini.svg)](https://travis-ci.org/yihui/rmini)

Everything about an R package when you want to learn how to develop an R package. Specifically, it has examples for

- DESCRIPTION
- roxygen documentation
- namespace
- S3 generic functions
- C code
- datasets
- demos
- R Markdown vignettes

Forget about `package.skeleton()`; you will regret learning that "official" function one day. The Rd documentation, NAMESPACE and the `Collate` field in DESCRIPTION are automatically generated by **roxygen2**. This is how I generated them:

```r
library(Rd2roxygen)
rab('rmini')
```

Well, that is not what I really did. I just open `rmini.Rproj` in RStudio, and
click the button `Build & Reload`, which basically runs the code above.