{% set version = '0.1.2' %}

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

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

source:
  fn: tidytext_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/tidytext_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/tidytext/tidytext_{{ version }}.tar.gz
  sha256: 9581ad8f5b03a29be15952053f1dad98e9218e61e1c78a05d162332ad53ab9de

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-matrix
    - r-broom
    - r-dplyr
    - r-hunspell
    - r-janeaustenr
    - r-purrr >=0.1.1
    - r-stringr
    - r-tokenizers

  run:
    - r-base
    - r-matrix
    - r-broom
    - r-dplyr
    - r-hunspell
    - r-janeaustenr
    - r-purrr >=0.1.1
    - r-stringr
    - r-tokenizers

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

about:
  home: http://github.com/juliasilge/tidytext
  license: MIT
  summary: Text mining for word processing and sentiment analysis using 'dplyr', 'ggplot2', and
    other tidy tools.
  license_family: MIT

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
