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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/rrapply_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rrapply/rrapply_{{ version }}.tar.gz
  sha256: 672ecf899e95fb81828496e2401ddadc6c68982953f27e3bd8f8ed2c145cf3a0

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]

test:
  commands:
    - $R -e "library('rrapply')"           # [not win]
    - "\"%R%\" -e \"library('rrapply')\""  # [win]

about:
  home: https://jorischau.github.io/rrapply/, https://github.com/JorisChau/rrapply
  license: GPL-3.0-only
  summary: The minimal 'rrapply'-package contains a single function rrapply(), providing an extended implementation of 'R'-base rapply() by allowing to recursively apply a function to elements of a nested list based on a general condition function and including the possibility to prune or aggregate nested list elements from
    the result. In addition, special arguments can be supplied to access the name, location, parents and siblings in the nested list of the element under evaluation. The rrapply() function builds upon rapply()'s native 'C' implementation and requires no other package dependencies.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

extra:
  recipe-maintainers:
    - conda-forge/r
    - simonhtausch

# Package: rrapply
# Type: Package
# Title: Revisiting Base Rapply
# Version: 1.2.1
# Date: 2020-10-23
# Authors@R: person("Joris", "Chau", email = "joris.chau@openanalytics.eu", role = c("aut", "cre"))
# Description: The minimal 'rrapply'-package contains a single function rrapply(), providing an extended implementation of 'R'-base rapply() by allowing to recursively apply a function to elements of a nested list based on a general condition function and including the possibility to prune or aggregate nested list elements from the result. In addition, special arguments can be supplied to access the name, location, parents and siblings in the nested list of the element under evaluation. The rrapply() function builds upon rapply()'s native 'C' implementation and requires no other package dependencies.
# BugReports: https://github.com/JorisChau/rrapply/issues
# URL: https://jorischau.github.io/rrapply/, https://github.com/JorisChau/rrapply
# Depends: R (>= 3.5)
# Encoding: UTF-8
# License: GPL-3
# LazyData: true
# RoxygenNote: 7.1.1
# NeedsCompilation: yes
# Packaged: 2020-11-07 10:52:35 UTC; jchau
# Author: Joris Chau [aut, cre]
# Maintainer: Joris Chau <joris.chau@openanalytics.eu>
# Repository: CRAN
# Date/Publication: 2020-11-07 11:00:03 UTC
