{% set version = '1.0.14' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/iterators_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/iterators/iterators_{{ version }}.tar.gz
  sha256: cef3075a0930e1408c764e4da56bbadd4f7d14315809df8f38dd51f80ccc677b

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: RUnit, foreach
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('iterators')"           # [not win]
    - "\"%R%\" -e \"library('iterators')\""  # [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://github.com/RevolutionAnalytics/iterators
  license: Apache License (== 2.0)
  summary: Support for iterators, which allow a programmer to traverse through all the elements
    of a vector, list, or other collection of data.
  license_family: APACHE

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

# The original CRAN metadata for this package was:

# Package: iterators
# Type: Package
# Title: Provides Iterator Construct
# Version: 1.0.14
# Authors@R: c(person("Folashade", "Daniel", role="cre", email="fdaniel@microsoft.com"), person("Revolution", "Analytics", role=c("aut", "cph")), person("Steve", "Weston", role="aut"))
# Description: Support for iterators, which allow a programmer to traverse through all the elements of a vector, list, or other collection of data.
# URL: https://github.com/RevolutionAnalytics/iterators
# Depends: R (>= 2.5.0), utils
# Suggests: RUnit, foreach
# License: Apache License (== 2.0)
# NeedsCompilation: no
# Packaged: 2022-01-16 18:19:31 UTC; folashade
# Author: Folashade Daniel [cre], Revolution Analytics [aut, cph], Steve Weston [aut]
# Maintainer: Folashade Daniel <fdaniel@microsoft.com>
# Repository: CRAN
# Date/Publication: 2022-02-05 00:50:08 UTC

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