Skip to content
/ rpkgs Public

A skeleton for R packages + Docker / Pkgdown / Pages aimed for Bioconductor

License

Notifications You must be signed in to change notification settings

montilab/rpkgs

Repository files navigation

rpkgs

A skeleton for R packages + Docker / Pkgdown / Pages aimed for Bioconductor

.github/workflows/build.yaml

Help

Having trouble getting your package to build?

Build your Dockerfile locally

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.

devtools::install_github("montilab/rpkgs")

Usage

library(rpkgs)
data(example)
print(example)
#> [1]  1  2  5 10 25
cols <- colorize(example)
print(cols)
#> [1] "#0D0887FF" "#280592FF" "#5D01A6FF" "#A92395FF" "#F0F921FF"
visualize(cols)

citation("rpkgs")
#> 
#> To cite rpkgs in publications use:
#> 
#>   A Skeleton R Package (2020) Monti Lab.
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Article{,
#>     title = {A Skeleton R Package},
#>     author = {Anthony Federico},
#>     journal = {Monti Lab},
#>     year = {2020},
#>     volume = {1},
#>     number = {1},
#>     pages = {1-2},
#>     url = {https://github.com/montilab/rpkgs},
#>   }

Releases

No releases published

Packages

No packages published