Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yihui/rmini
A minimal R package with examples of most common components
https://github.com/yihui/rmini
Last synced: about 2 months ago
JSON representation
A minimal R package with examples of most common components
- Host: GitHub
- URL: https://github.com/yihui/rmini
- Owner: yihui
- Created: 2012-09-12T19:57:00.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-04-27T03:33:53.000Z (over 3 years ago)
- Last Synced: 2024-05-12T08:40:24.812Z (7 months ago)
- Language: R
- Size: 23.4 KB
- Stars: 90
- Watchers: 17
- Forks: 41
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 vignettesForget 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.