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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/partykit_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/partykit/partykit_{{ version }}.tar.gz
  sha256: 5c993c729c2975095eb27e6363eeb1c8a8ba22035f226f598af9d43a4ca312c1

build:
  merge_build_host: true  # [win]
  number: 1
  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
    - r-formula >=1.2_1
    - r-inum >=1.0_0
    - r-libcoin >=1.0_0
    - r-mvtnorm
    - r-party >=1.3_0
    - r-rpart >=4.1_11
    - r-survival
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-formula >=1.2_1
    - r-inum >=1.0_0
    - r-libcoin >=1.0_0
    - r-mvtnorm
    - r-party >=1.3_0
    - r-rpart >=4.1_11
    - r-survival

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

about:
  home: http://partykit.R-Forge.R-project.org/partykit
  license: GPL-2 | GPL-3
  summary: A toolkit with infrastructure for representing, summarizing, and visualizing tree-structured regression and classification models. This unified infrastructure
    can be used for reading/coercing tree models from different sources ('rpart', 'RWeka', 'PMML') yielding objects that share functionality for print()/plot()/predict()
    methods. Furthermore, new and improved reimplementations of conditional inference trees (ctree()) and model-based recursive partitioning (mob()) from the 'party'
    package are provided based on the new infrastructure. A description of this package was published by Hothorn and Zeileis (2015) <http://jmlr.org/papers/v16/hothorn15a.html>.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

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

# Package: partykit
# Title: A Toolkit for Recursive Partytioning
# Date: 2020-01-23
# Version: 1.2-6
# Authors@R: c(person(given = "Torsten", family = "Hothorn", role = c("aut", "cre"), email = "Torsten.Hothorn@R-project.org", comment = c(ORCID = "0000-0001-8301-0471")), person(given = "Heidi", family = "Seibold", role = "ctb", email = "heidi@seibold.co", comment = c(ORCID = "0000-0002-8960-9642")), person(given = "Achim", family = "Zeileis", role = "aut", email = "Achim.Zeileis@R-project.org", comment = c(ORCID = "0000-0003-0918-3766")))
# Description: A toolkit with infrastructure for representing, summarizing, and visualizing tree-structured regression and classification models. This unified infrastructure can be used for reading/coercing tree models from different sources ('rpart', 'RWeka', 'PMML') yielding objects that share functionality for print()/plot()/predict() methods. Furthermore, new and improved reimplementations of conditional inference trees (ctree()) and model-based recursive partitioning (mob()) from the 'party' package are provided based on the new infrastructure. A description of this package was published by Hothorn and Zeileis (2015) <http://jmlr.org/papers/v16/hothorn15a.html>.
# Depends: R (>= 3.1.0), graphics, grid, libcoin (>= 1.0-0), mvtnorm
# Imports: grDevices, stats, utils, survival, Formula (>= 1.2-1), inum (>= 1.0-0), rpart (>= 4.1-11), party (>= 1.3-0)
# Suggests: XML, pmml, rJava, sandwich, strucchange, vcd, AER, mlbench, TH.data (>= 1.0-3), coin (>= 1.1-0), RWeka (>= 0.4-19), datasets, parallel, psychotools (>= 0.3-0), psychotree,
# LazyData: yes
# License: GPL-2 | GPL-3
# URL: http://partykit.R-Forge.R-project.org/partykit
# RoxygenNote: 6.1.1
# NeedsCompilation: yes
# Packaged: 2020-01-24 13:11:44 UTC; hothorn
# Author: Torsten Hothorn [aut, cre] (<https://orcid.org/0000-0001-8301-0471>), Heidi Seibold [ctb] (<https://orcid.org/0000-0002-8960-9642>), Achim Zeileis [aut] (<https://orcid.org/0000-0003-0918-3766>)
# Maintainer: Torsten Hothorn <Torsten.Hothorn@R-project.org>
# Repository: CRAN
# Date/Publication: 2020-01-30 16:50:02 UTC
