{% set version = '1.3.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/dtplyr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/dtplyr/dtplyr_{{ version }}.tar.gz
  sha256: a5a9689a640b8bd1274519af220c33deaa3919654acac4ebdff1ff365cc8d6e5

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: bench, covr, knitr, rmarkdown, testthat (>= 3.1.2), tidyr (>= 1.1.0), waldo (>= 0.3.1)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-cli >=3.4.0
    - r-data.table >=1.13.0
    - r-dplyr >=1.1.0
    - r-glue
    - r-lifecycle
    - r-rlang >=1.0.4
    - r-tibble
    - r-tidyselect >=1.2.0
    - r-vctrs >=0.4.1

  run:
    - r-base
    - r-cli >=3.4.0
    - r-data.table >=1.13.0
    - r-dplyr >=1.1.0
    - r-glue
    - r-lifecycle
    - r-rlang >=1.0.4
    - r-tibble
    - r-tidyselect >=1.2.0
    - r-vctrs >=0.4.1

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('dtplyr')"           # [not win]
    - "\"%R%\" -e \"library('dtplyr')\""  # [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://dtplyr.tidyverse.org, https://github.com/tidyverse/dtplyr
  license: MIT
  summary: Provides a data.table backend for 'dplyr'. The goal of 'dtplyr' is to allow you to
    write 'dplyr' code that is automatically translated to the equivalent, but usually
    much faster, data.table code.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

# The original CRAN metadata for this package was:

# Package: dtplyr
# Title: Data Table Back-End for 'dplyr'
# Version: 1.3.1
# Authors@R: c( person("Hadley", "Wickham", , "hadley@posit.co", role = c("cre", "aut")), person("Maximilian", "Girlich", role = "aut"), person("Mark", "Fairbanks", role = "aut"), person("Ryan", "Dickerson", role = "aut"), person("Posit Software, PBC", role = c("cph", "fnd")) )
# Description: Provides a data.table backend for 'dplyr'. The goal of 'dtplyr' is to allow you to write 'dplyr' code that is automatically translated to the equivalent, but usually much faster, data.table code.
# License: MIT + file LICENSE
# URL: https://dtplyr.tidyverse.org, https://github.com/tidyverse/dtplyr
# BugReports: https://github.com/tidyverse/dtplyr/issues
# Depends: R (>= 3.3)
# Imports: cli (>= 3.4.0), data.table (>= 1.13.0), dplyr (>= 1.1.0), glue, lifecycle, rlang (>= 1.0.4), tibble, tidyselect (>= 1.2.0), vctrs (>= 0.4.1)
# Suggests: bench, covr, knitr, rmarkdown, testthat (>= 3.1.2), tidyr (>= 1.1.0), waldo (>= 0.3.1)
# VignetteBuilder: knitr
# Config/Needs/website: tidyverse/tidytemplate
# Config/testthat/edition: 3
# Encoding: UTF-8
# RoxygenNote: 7.2.3
# NeedsCompilation: no
# Packaged: 2023-03-21 14:31:40 UTC; hadleywickham
# Author: Hadley Wickham [cre, aut], Maximilian Girlich [aut], Mark Fairbanks [aut], Ryan Dickerson [aut], Posit Software, PBC [cph, fnd]
# Maintainer: Hadley Wickham <hadley@posit.co>
# Repository: CRAN
# Date/Publication: 2023-03-22 13:10:05 UTC

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