{% set version = '0.4.2' %}

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

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

source:
  fn: broom_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/broom_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/broom/broom_{{ version }}.tar.gz
  sha256: 9f409413623cf25e7110452e6215353af5114f7044d73af182bd6c10971c5a44

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

requirements:
  build:
    - r-base
    - r-dplyr
    - r-nlme
    - r-plyr
    - r-psych
    - r-reshape2
    - r-stringr
    - r-tidyr

  run:
    - r-base
    - r-dplyr
    - r-nlme
    - r-plyr
    - r-psych
    - r-reshape2
    - r-stringr
    - r-tidyr

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

about:
  home: http://github.com/tidyverse/broom
  license: MIT
  summary: |
    Convert statistical analysis objects from R into tidy data frames, so that they can
    more easily be combined, reshaped and otherwise processed with tools like ''dplyr'',
    ''tidyr'' and ''ggplot2''. The package provides three S3 generics: tidy, which summarizes
    a model''s statistical findings such as coefficients of a regression; augment, which
    adds columns to the original data such as predictions, residuals and cluster assignments;
    and glance, which provides a one-row summary of model-level statistics.
  license_family: MIT

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
