r-hub/rhub

Name: rhub

Owner: The R-hub project of the R Consortium

Description: R-hub API client

Created: 2016-09-03 12:00:31.0

Updated: 2018-01-13 21:34:02.0

Pushed: 2017-11-01 08:10:15.0

Homepage: null

Size: 821

Language: R

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

rhub

Connect to r-hub, from R

Linux Build Status Windows Build status CRAN RStudio mirror downloads Coverage Status

Run R CMD check on any of the r-hub architectures, from the command line.

Introduction

r-hub is a multi-platform build and check service for R packages. This packages uses the r-hub API to connect to r-hub and start package checks on various architectures.

Installation
ools::install_github("r-hub/rhub")
Usage
ary(rhub)
Validating your email address

To build packages, first you need to validate your email address with validate_email(). The package tries to detect your email address, and if it fails to do this correctly, you'll need to specify it.

rhub stores the token permanently on the machine, so you do not need to validate your email again. You can also copy your token to other machines, see list_validated_emails().

Currently you cannot use the token obtained via this function, in the Web UI of r-hub.

Listing r-hub platforms
forms()

ebian-gcc-devel:
 Debian Linux, R-devel, GCC
ebian-gcc-patched:
 Debian Linux, R-patched, GCC
ebian-gcc-release:
 Debian Linux, R-release, GCC
edora-clang-devel:
 Fedora Linux, R-devel, clang, gfortran
edora-gcc-devel:
 Fedora Linux, R-devel, GCC
inux-x86_64-centos6-epel:
 CentOS 6, stock R from EPEL
inux-x86_64-centos6-epel-rdt:
 CentOS 6 with Redhat Developer Toolset, R from EPEL
inux-x86_64-rocker-gcc-san:
 Debian Linux, R-devel, GCC ASAN/UBSAN
buntu-gcc-devel:
 Ubuntu Linux 16.04 LTS, R-devel, GCC
buntu-gcc-release:
 Ubuntu Linux 16.04 LTS, R-release, GCC
indows-x86_64-devel:
 Windows Server 2008 R2 SP1, R-devel, 32/64 bit
indows-x86_64-oldrel:
 Windows Server 2008 R2 SP1, R-oldrel, 32/64 bit
indows-x86_64-patched:
 Windows Server 2008 R2 SP1, R-patched, 32/64 bit
indows-x86_64-release:
 Windows Server 2008 R2 SP1, R-release, 32/64 bit

You can use the platform ids (e.g. debian-gcc-devel) to select between platforms.

Run a package check

check() runs an R CMD check on the package in the specified directory, or specified source R package tarball created by R CMD build or devtools::build(). It defaults to the working directory.

k()

In interactive R sessions, the output of the check is printed to the screen.

Shortcuts for quick checks

These are quick shortcuts that select the right platform:

Sanitizers for compiled code

r-hub provides a special Docker image to run Address Sanitizer (ASAN) and Undefined Behavior Sanitizer (UBSAN). This is based on the r-devel-san image of the Rocker project.

This image does not run R CMD check at all, but it runs

  1. package tests,
  2. all manual examples, and
  3. all vignette code

with ASAN and UBSAN enabled.

License

MIT © R Consortium


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.