Following more closely an example R package.
{% set version = '0.9.5' %}
+{% set posix = 'm2-' if win else '' %}
+{% set native = 'm2w64-' if win else '' %}
+
+
package:
name: r-grr
version: {{ version|replace("-", "_") }}
@@ -11,6 +15,7 @@ source:
build:
number: 0
+ skip: true # [win32]
rpaths:
- lib/R/lib/
@@ -19,13 +24,18 @@ build:
requirements:
build:
- r-base
+ - posix # [win]
+ - {{native}}toolchain # [win]
+ - gcc # [not win]
run:
- r-base
+ - libgcc # [not win]
test:
commands:
- - $R -e "library('grr')"
+ - $R -e "library('grr')" # [not win]
+ - "\"%R%\" -e \"library('grr')\"" # [win]
about:
home: https://cran.r-project.org/package=grr
