helper cli methods for R package devs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
.gitignore
.travis.yml
CHANGELOG.md
CONDUCT.md
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
rubrb.gemspec

README.md

rubrb

Build Status

rubrb does stuff

Changes

For changes see the Changelog

API

  • /test - Rubrb.test()
  • /check - Rubrb.check()
  • /version - Rubrb.version()
  • /revdeps - Rubrb.revdeps()

Install

Development version

gem install specific_install
gem specific_install https://github.com/sckott/rubrb.git

Use in a Ruby repl

Run a test by partial or full file name

require 'rubrb'
Rubrb.test(file: 'config')

Use on the CLI

The command line tool rb should be available after you install

~$ rubrb
Commands:
  rb check           # Run R CMD Check
  rb help [COMMAND]  # Describe available commands or one specific command
  rb lst             # List test files
  rb revdeps         # List reverse dependencies
  rb test [file]     # Run tests for a file or many
  rb version         # Get current package version

test

A single test

➜ rb test config
using:
  tests/testthat/test-config-fxns.R

config fxns: ........

DONE ===========================================================================

Many tests

➜ rb test config auth
using:
  tests/testthat/test-config-fxns.R
  tests/testthat/test-authentication.R

config fxns: ........

DONE ===========================================================================
authentication: ...................

DONE ===========================================================================

revdeps

➜  taxize git:(master) rb revdeps
using package: taxize
[1] "mapr"     "rbison"   "RNeXML"   "rnoaa"    "spocc"    "taxizedb" "onekp"
[8] "rotl"

Meta

  • Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
  • License: MIT