Yeoman generator for a new R package

Usage no npm install needed!

<script type="module">
  import generatorNewpackage from '';


R package generator

This generator scaffolds the files for your new R project. The resulting file structure looks like this:

├── R
│   ├── pending.R
│   └── {packagename}-package.R
├── man
│   └── {packagename}.Rd
└── tests
    ├── test-all.R
    └── testthat
        └── test-pending.R

Included out of the box

Requires the following to be installed:

Installation on mac:

# install dependencies
brew install npm # apt-get install npm on ubuntu
sudo npm install -g yo generator-newpackage

# start using
cd package/directory
yo newpackage
# or
yo newpackage packageName