{% set version = '1.3.0' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/tidyr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/tidyr/tidyr_{{ version }}.tar.gz
  sha256: 8d532b9366fdd3ec9827b51830e559a49d073425007c766025f0e603964e0a9d

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: covr, data.table, knitr, readr, repurrrsive (>= 1.1.0), rmarkdown, testthat (>= 3.0.0)
requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-cli >=3.4.1
    - r-cpp11 >=0.4.0
    - r-dplyr >=1.0.10
    - r-glue
    - r-lifecycle >=1.0.3
    - r-magrittr
    - r-purrr >=1.0.1
    - r-rlang >=1.0.4
    - r-stringr >=1.5.0
    - r-tibble >=2.1.1
    - r-tidyselect >=1.2.0
    - r-vctrs >=0.5.2

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-cli >=3.4.1
    - r-cpp11 >=0.4.0
    - r-dplyr >=1.0.10
    - r-glue
    - r-lifecycle >=1.0.3
    - r-magrittr
    - r-purrr >=1.0.1
    - r-rlang >=1.0.4
    - r-stringr >=1.5.0
    - r-tibble >=2.1.1
    - r-tidyselect >=1.2.0
    - r-vctrs >=0.5.2

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('tidyr')"           # [not win]
    - "\"%R%\" -e \"library('tidyr')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://tidyr.tidyverse.org, https://github.com/tidyverse/tidyr
  license: MIT
  summary: Tools to help to create tidy data, where each column is a variable, each row is an
    observation, and each cell contains a single value.  'tidyr' contains tools for
    changing the shape (pivoting) and hierarchy (nesting and 'unnesting') of a dataset,
    turning deeply nested lists into rectangular data frames ('rectangling'), and extracting
    values out of string columns. It also includes tools for working with missing values
    (both implicit and explicit).
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: tidyr
# Title: Tidy Messy Data
# Version: 1.3.0
# Authors@R: c( person("Hadley", "Wickham", , "hadley@posit.co", role = c("aut", "cre")), person("Davis", "Vaughan", , "davis@posit.co", role = "aut"), person("Maximilian", "Girlich", role = "aut"), person("Kevin", "Ushey", , "kevin@posit.co", role = "ctb"), person("Posit, PBC", role = c("cph", "fnd")) )
# Description: Tools to help to create tidy data, where each column is a variable, each row is an observation, and each cell contains a single value.  'tidyr' contains tools for changing the shape (pivoting) and hierarchy (nesting and 'unnesting') of a dataset, turning deeply nested lists into rectangular data frames ('rectangling'), and extracting values out of string columns. It also includes tools for working with missing values (both implicit and explicit).
# License: MIT + file LICENSE
# URL: https://tidyr.tidyverse.org, https://github.com/tidyverse/tidyr
# BugReports: https://github.com/tidyverse/tidyr/issues
# Depends: R (>= 3.4.0)
# Imports: cli (>= 3.4.1), dplyr (>= 1.0.10), glue, lifecycle (>= 1.0.3), magrittr, purrr (>= 1.0.1), rlang (>= 1.0.4), stringr (>= 1.5.0), tibble (>= 2.1.1), tidyselect (>= 1.2.0), utils, vctrs (>= 0.5.2)
# Suggests: covr, data.table, knitr, readr, repurrrsive (>= 1.1.0), rmarkdown, testthat (>= 3.0.0)
# LinkingTo: cpp11 (>= 0.4.0)
# VignetteBuilder: knitr
# Config/Needs/website: tidyverse/tidytemplate
# Config/testthat/edition: 3
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.2.3
# SystemRequirements: C++11
# NeedsCompilation: yes
# Packaged: 2023-01-23 22:21:00 UTC; hadleywickham
# Author: Hadley Wickham [aut, cre], Davis Vaughan [aut], Maximilian Girlich [aut], Kevin Ushey [ctb], Posit, PBC [cph, fnd]
# Maintainer: Hadley Wickham <hadley@posit.co>
# Repository: CRAN
# Date/Publication: 2023-01-24 16:00:02 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
