From c843e25f169f0912f8b56b254137eecd0e2dc751 Mon Sep 17 00:00:00 2001 From: nuest Date: Tue, 30 Oct 2018 16:24:43 +0100 Subject: [PATCH] simplify test for contexts (is now by default an empty list) --- repo2docker/buildpacks/r.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/repo2docker/buildpacks/r.py b/repo2docker/buildpacks/r.py index 5a856d64..7dcbe30d 100644 --- a/repo2docker/buildpacks/r.py +++ b/repo2docker/buildpacks/r.py @@ -239,19 +239,18 @@ class RBuildPack(PythonBuildPack): ), ] - if self.stencila_manifest_contexts: - if "r" in self.stencila_manifest_contexts: - scripts += [ - ( - "${NB_USER}", - # Install and register stencila library - r""" - R --quiet -e "source('https://bioconductor.org/biocLite.R'); biocLite('graph')" && \ - R --quiet -e "devtools::install_github('stencila/r', ref = '361bbf560f3f0561a8612349bca66cd8978f4f24')" && \ - R --quiet -e "stencila::register()" - """ - ), - ] + if "r" in self.stencila_contexts: + scripts += [ + ( + "${NB_USER}", + # Install and register stencila library + r""" + R --quiet -e "source('https://bioconductor.org/biocLite.R'); biocLite('graph')" && \ + R --quiet -e "devtools::install_github('stencila/r', ref = '361bbf560f3f0561a8612349bca66cd8978f4f24')" && \ + R --quiet -e "stencila::register()" + """ + ), + ] return super().get_build_scripts() + scripts