{% set version = '0.1.11' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/modelr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/modelr/modelr_{{ version }}.tar.gz
  sha256: 94ebd506e9ccf3bf25318be6a182f8f89c3669a77b41864a0b9dbcc1d4337bd3

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

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

# Suggests: compiler, covr, ggplot2, testthat (>= 3.0.0)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-broom
    - r-magrittr
    - r-purrr >=0.2.2
    - r-rlang >=1.0.6
    - r-tibble
    - r-tidyr >=0.8.0
    - r-tidyselect
    - r-vctrs

  run:
    - r-base
    - r-broom
    - r-magrittr
    - r-purrr >=0.2.2
    - r-rlang >=1.0.6
    - r-tibble
    - r-tidyr >=0.8.0
    - r-tidyselect
    - r-vctrs

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('modelr')"           # [not win]
    - "\"%R%\" -e \"library('modelr')\""  # [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://modelr.tidyverse.org, https://github.com/tidyverse/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
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# The original CRAN metadata for this package was:

# Package: modelr
# Title: Modelling Functions that Work with the Pipe
# Version: 0.1.11
# Authors@R: c( person("Hadley", "Wickham", , "hadley@posit.co", role = c("aut", "cre")), person("Posit Software, PBC", role = c("cph", "fnd")) )
# Description: Functions for modelling that help you seamlessly integrate modelling into a pipeline of data manipulation and visualisation.
# License: GPL-3
# URL: https://modelr.tidyverse.org, https://github.com/tidyverse/modelr
# BugReports: https://github.com/tidyverse/modelr/issues
# Depends: R (>= 3.2)
# Imports: broom, magrittr, purrr (>= 0.2.2), rlang (>= 1.0.6), tibble, tidyr (>= 0.8.0), tidyselect, vctrs
# Suggests: compiler, covr, ggplot2, testthat (>= 3.0.0)
# Config/Needs/website: tidyverse/tidytemplate
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.2.3
# Config/testthat/edition: 3
# NeedsCompilation: no
# Packaged: 2023-03-21 14:12:54 UTC; hadleywickham
# Author: Hadley Wickham [aut, cre], Posit Software, PBC [cph, fnd]
# Maintainer: Hadley Wickham <hadley@posit.co>
# Repository: CRAN
# Date/Publication: 2023-03-22 13:00:07 UTC

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