{% set version = '1.8.9' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/plyr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/plyr/plyr_{{ version }}.tar.gz
  sha256: 15b5e7f711d53bf41b8687923983b8ef424563aa2f74c5195feb5b1df1aee103

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: abind, covr, doParallel, foreach, iterators, itertools, tcltk, testthat
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-rcpp >=0.11.0

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-rcpp >=0.11.0

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('plyr')"           # [not win]
    - "\"%R%\" -e \"library('plyr')\""  # [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: http://had.co.nz/plyr, https://github.com/hadley/plyr
  license: MIT
  summary: 'A set of tools that solves a common set of problems: you need to break a big problem
    down into manageable pieces, operate on each piece and then put all the pieces back
    together.  For example, you might want to fit a model to each spatial location or
    time point in your study, summarise data by panels or collapse high-dimensional
    arrays to simpler summary statistics. The development of ''plyr'' has been generously
    supported by ''Becton Dickinson''.'
  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: plyr
# Title: Tools for Splitting, Applying and Combining Data
# Version: 1.8.9
# Authors@R: person("Hadley", "Wickham", , "hadley@rstudio.com", role = c("aut", "cre"))
# Description: A set of tools that solves a common set of problems: you need to break a big problem down into manageable pieces, operate on each piece and then put all the pieces back together.  For example, you might want to fit a model to each spatial location or time point in your study, summarise data by panels or collapse high-dimensional arrays to simpler summary statistics. The development of 'plyr' has been generously supported by 'Becton Dickinson'.
# License: MIT + file LICENSE
# URL: http://had.co.nz/plyr, https://github.com/hadley/plyr
# BugReports: https://github.com/hadley/plyr/issues
# Depends: R (>= 3.1.0)
# Imports: Rcpp (>= 0.11.0)
# Suggests: abind, covr, doParallel, foreach, iterators, itertools, tcltk, testthat
# LinkingTo: Rcpp
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.2.3
# NeedsCompilation: yes
# Packaged: 2023-09-27 13:58:04 UTC; hadleywickham
# Author: Hadley Wickham [aut, cre]
# Maintainer: Hadley Wickham <hadley@rstudio.com>
# Repository: CRAN
# Date/Publication: 2023-10-02 06:50:08 UTC

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