diff --git a/recipes/r-testthat/build.sh b/recipes/r-testthat/build.sh new file mode 100644 index 0000000..0c37df6 --- /dev/null +++ b/recipes/r-testthat/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# R refuses to build packages that mark themselves as Priority: Recommended +mv DESCRIPTION DESCRIPTION.old +grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION + +$R CMD INSTALL --build . + +# Add more build steps here, if they are necessary. + +# See +# http://docs.continuum.io/conda/build.html +# for a list of environment variables that are set during the build process. diff --git a/recipes/r-testthat/meta.yaml b/recipes/r-testthat/meta.yaml new file mode 100644 index 0000000..47fc6e8 --- /dev/null +++ b/recipes/r-testthat/meta.yaml @@ -0,0 +1,42 @@ +# This file created by conda-build 2.0.7 +# meta.yaml template originally from: +# /opt/recipe, last modified Sat Jun 3 21:05:01 2017 +# ------------------------------------------------ + +package: + name: r-testthat + version: 1.0.2 +source: + fn: testthat_1.0.2.tar.gz + md5: 6c6a90c8db860292df5784a70e07b8dc + url: + - https://cran.r-project.org/src/contrib/testthat_1.0.2.tar.gz + - https://cran.r-project.org/src/contrib/Archive/testthat/testthat_1.0.2.tar.gz +build: + number: '1' + rpaths: + - lib/R/lib/ + - lib/ +requirements: + build: + - gcc + - 'r-base >=4.1,<4.2' + - r-crayon + - r-digest + - r-magrittr + - r-praise + - r-r6 + run: + - 'r-base >=4.1,<4.2' + - r-crayon + - r-digest + - r-magrittr + - r-praise + - r-r6 +test: + commands: + - $R -e "library('testthat')" +about: + home: https://github.com/hadley/testthat + license: MIT + file LICENSE + summary: A unit testing system designed to be fun, flexible and easy to set up. diff --git a/recipes/r-testthat/meta.yaml.template b/recipes/r-testthat/meta.yaml.template new file mode 100644 index 0000000..1aabb93 --- /dev/null +++ b/recipes/r-testthat/meta.yaml.template @@ -0,0 +1,51 @@ +package: + name: r-testthat + # Note that conda versions cannot contain -, so any -'s in the version have + # been replaced with _'s. + version: "1.0.2" + +source: + fn: testthat_1.0.2.tar.gz + url: + - https://cran.r-project.org/src/contrib/testthat_1.0.2.tar.gz + - https://cran.r-project.org/src/contrib/Archive/testthat/testthat_1.0.2.tar.gz + md5: 6c6a90c8db860292df5784a70e07b8dc + +build: + number: 1 + + # This is required to make R link correctly on Linux. + rpaths: + - lib/R/lib/ + - lib/ + +# Suggests: devtools, withr, covr +requirements: + build: + - gcc # [not win] + - r-base + - r-crayon + - r-digest + - r-magrittr + - r-praise + - r-r6 + + run: + - libgcc # [not win] + - r-base + - r-crayon + - r-digest + - r-magrittr + - r-praise + - r-r6 + +test: + commands: + # You can put additional test commands to be run here. + - $R -e "library('testthat')" # [not win] + - "\"%R%\" -e \"library('testthat')\"" # [win] + +about: + home: https://github.com/hadley/testthat + license: MIT + file LICENSE + summary: A unit testing system designed to be fun, flexible and easy to set up.