{% set version = '1.1.1' %}

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

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

source:
  fn: tidyverse_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/tidyverse_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/tidyverse/tidyverse_{{ version }}.tar.gz
  sha256: 1d6b3f2e62257692206ca30be43ab2f9db59f0cc8c05f657eb47ccf8fbd11daa

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

requirements:
  build:
    - r-base
    - r-broom
    - r-dplyr
    - r-forcats
    - r-ggplot2
    - r-haven
    - r-hms
    - r-httr
    - r-jsonlite
    - r-lubridate
    - r-magrittr
    - r-modelr
    - r-purrr
    - r-readr
    - r-readxl
    - r-rvest
    - r-stringr
    - r-tibble
    - r-tidyr
    - r-xml2
  run:
    - r-base
    - r-broom
    - r-dplyr
    - r-forcats
    - r-ggplot2
    - r-haven
    - r-hms
    - r-httr
    - r-jsonlite
    - r-lubridate
    - r-magrittr
    - r-modelr
    - r-purrr
    - r-readr
    - r-readxl
    - r-rvest
    - r-stringr
    - r-tibble
    - r-tidyr
    - r-xml2

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

about:
  home: http://tidyverse.org, https://github.com/tidyverse/tidyverse
  license: GPL-3
  summary: The 'tidyverse' is a set of packages that work in harmony because they share common
    data representations and 'API' design. This package is designed to make it easy
    to install and load multiple 'tidyverse' packages in a single step. Learn more about
    the 'tidyverse' at <https://github.com/hadley/tidyverse>.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
