add description test to this repo
MODIFY
docs/source/config_files.rst
docs/source/config_files.rst
@@ -117,7 +117,7 @@ To install your repository like an R package, you may include a
from the ``DESCRIPTION`` by running ``devtools:install_git(".")``.
You also need to have a ``runtime.txt`` file that is formatted as
- ``r-<YYYY>-<MM>-<DD>``, where YYYY-MM-DD is a snapshot at MRAN that will be
+ ``r-<YYYY>-<MM>-<DD>``, where YYYY-MM-DD is a snapshot of MRAN that will be
used for your R installation.
.. _postBuild:

MODIFY
tests/external/reproductions.repos.yaml
tests/external/reproductions.repos.yaml
url: https://github.com/QuantStack/xeus-cling
ref: 0.4.5
verify: jupyter kernelspec list
-- name: Test compiling R package
- url: https://github.com/gedankenstuecke/binder-r-description
- ref: master
- verify: R --quiet -e 'binderdescription::print_something()'

ADD
tests/r/description-file/DESCRIPTION
+Package: binderdescription
+Version: 0.1
+Date: 2018-09-18
+Title: Binder R DESCRIPTION support
+Description: Test that automatically building R packages works
+Author: Bastian Greshake Tzovaras <bgreshake@googlemail.com>
+Maintainer: Bastian Greshake Tzovaras <bgreshake@googlemail.com>

ADD
tests/r/description-file/NAMESPACE
+# Export all names
+exportPattern(".")

ADD
tests/r/description-file/R/print_something.R
+print_something <- function()
+ {
+ print('blah');
+ }

ADD
tests/r/description-file/README.md
+# Test that `repo2docker` will build an R package
+
+If a `DESCRIPTION` file is present along with an `R`-requiring `runtime.txt`
+, repo2docker should build the R package that is in the repository.

ADD
tests/r/description-file/runtime.txt
+r-2018-02-05

ADD
tests/r/description-file/verify
+#!/usr/bin/env Rscript
+library('binderdescription')

add description test to this repo