{% set version = '0.1.0' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-modelr
  version: {{ version|replace("-", "_") }}

source:
  fn: modelr_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/modelr_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/modelr/modelr_{{ version }}.tar.gz
  sha256: 7e8b83961ec3aee322005386e7a2b1afcd7a17959b101005b805cfd0e3d730ef

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-broom
    - r-dplyr
    - r-lazyeval >=0.2.0
    - r-magrittr
    - r-purrr >=0.2.2
    - r-tibble
    - r-tidyr >=0.6.0

  run:
    - r-base
    - r-broom
    - r-dplyr
    - r-lazyeval >=0.2.0
    - r-magrittr
    - r-purrr >=0.2.2
    - r-tibble
    - r-tidyr >=0.6.0

test:
  commands:
    - $R -e "library('modelr')"  # [not win]
    - "\"%R%\" -e \"library('modelr')\""  # [win]

about:
  home: https://github.com/hadley/modelr
  license: GPL-3
  summary: Functions for modelling that help you seamlessly integrate modelling into a pipeline
    of data manipulation and visualisation.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
