metacran/mason

Name: mason

Owner: metacran

Description: A friendly craftsman that builds you great R packages

Created: 2015-06-02 05:56:14.0

Updated: 2018-05-21 14:33:45.0

Pushed: 2017-07-07 15:13:27.0

Homepage:

Size: 1629

Language: R

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

mason

Friendly Craftsman Who Builds Slick R Packages

Linux Build Status Windows Build status CRAN RStudio mirror downloads

Mason builds R packages. It asks you some simple questions, fills in a template based on your answers, and creates proper metadata files, READMEs with badges, git repositories, everything you need to just start writing and committing your code.

Mason is extensible: each template is a separate R package named mason.<template>, where <template> is the name of the template. To use a new template, you need to install it first. Mason will be then able to use it immediately, without any configuration. See e.g. mason.rpkg for a generic R package template.

Mason makes sure that you get your package as quick as possible, with the least number of keystrokes: it tries to find out your username, name email address, GitHub login name, etc. from your settings, to give you reasonable defaults, so that all you need to do is press ENTER a couple of times.

Mason's role model is Yeoman.

Installation

You can install Mason and its dependencies from GitHub, using the devtools package:

ools::install_github("metacran/mason")

You need to install at least one template as well:

ools::install_github("metacran/mason.rpkg")
ools::install_github("metacran/mason.github")
Usage

Create an empty directory and make that your current directory. The new package will be created within that:

create("mypackage")
d("mypackage")

Then just call Mason with the name of the template:

n::mason("github")

License

MIT © Gábor Csárdi.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.