forked from montilab/rpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
89 lines (63 loc) · 1.56 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
output: rmarkdown::github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r echo=FALSE, message=FALSE}
knitr::opts_chunk$set(message=FALSE, comment="#>")
devtools::load_all(".")
```
# rpkgs
A skeleton for R packages + Docker / Pkgdown / Pages aimed for Bioconductor
![.github/workflows/build.yaml](https://github.com/montilab/rpkgs/workflows/.github/workflows/build.yaml/badge.svg)
[![](https://img.shields.io/badge/lifecycle-maturing-4ba598.svg)](https://www.tidyverse.org/lifecycle/#maturing)
## Halp
Having trouble getting your package to build?
#### Build your Dockerfile locally
```bash
docker build --tag montilab/rpkgs:latest .
```
Does it build successfully?
#### See if the package is loadable on the image
```
docker run -i -t montilab/rpkgs:latest /bin/bash
R
library(rpkgs)
data(example)
print(example)
```
#### Build your github workflow file slowly and locally
```
# Install this tool for local testing
brew install nektos/tap/act
# List the actions
act -l
# Run the default (`push`) event:
act
```
## Documentation
Please visit <https://montilab.github.io/rpkgs/>
## Requirements
We recommend the latest version of R (\>= 4.0.0) but **rpkgs** currently requires R (\>= 3.6.0) to be installed.
## Installation
Install the development version of the package from Github.
``` r
devtools::install_github("montilab/rpkgs")
```
## Usage
```{r, eval=FALSE}
library(rpkgs)
```
```{r}
data(example)
print(example)
```
```{r}
cols <- colorize(example)
print(cols)
```
```{r}
visualize(cols)
```
```{r}
citation("rpkgs")
```