{% set version = "0.9-15" %}
{% set posix = 'm2-' if win else '' %}

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/ipred_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ipred/ipred_{{ version }}.tar.gz
  sha256: a4752de11121262f3f4c43163efa34e05e42cdf4f8496d8897be6f410dc0ee4b

build:
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - cross-r-base {{ r_base }}  # [build_platform != target_platform]
    - r-mass                     # [build_platform != target_platform]
    - r-prodlim                  # [build_platform != target_platform]
    - r-nnet                     # [build_platform != target_platform]
    - r-class                    # [build_platform != target_platform]
    - r-rpart                    # [build_platform != target_platform]
    - r-survival                 # [build_platform != target_platform]
    - {{ compiler('c') }}              # [not win]
    - {{ stdlib("c") }}                # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ stdlib("m2w64_c") }}          # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-mass
    - r-class
    - r-nnet
    - r-prodlim
    - r-rpart >=3.1_8
    - r-survival
  run:
    - r-base
    - r-mass
    - r-class
    - r-nnet
    - r-prodlim
    - r-rpart >=3.1_8
    - r-survival

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

about:
  home: https://CRAN.R-project.org/package=ipred
  license: GPL-2.0-or-later
  summary: 'Improved predictive models by indirect classification and bagging for classification, regression and survival problems  as well as resampling based estimators of prediction error. '
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: ipred
# Title: Improved Predictors
# Version: 0.9-9
# Date: 2019-04-29
# Authors@R: c(person("Andrea", "Peters", role = "aut"), person("Torsten", "Hothorn", role = c("aut", "cre"), email = "Torsten.Hothorn@R-project.org"), person("Brian D.", "Ripley", role = "ctb"), person("Terry", "Therneau", role = "ctb"),  person("Beth", "Atkinson", role = "ctb"))
# Description: Improved predictive models by indirect classification and bagging for classification, regression and survival problems  as well as resampling based estimators of prediction error.
# Depends: R (>= 2.10)
# Imports: rpart (>= 3.1-8), MASS, survival, nnet, class, prodlim
# Suggests: mvtnorm, mlbench, TH.data
# License: GPL (>= 2)
# NeedsCompilation: yes
# Packaged: 2019-04-28 16:17:41 UTC; hothorn
# Author: Andrea Peters [aut], Torsten Hothorn [aut, cre], Brian D. Ripley [ctb], Terry Therneau [ctb], Beth Atkinson [ctb]
# Maintainer: Torsten Hothorn <Torsten.Hothorn@R-project.org>
# Repository: CRAN
# Date/Publication: 2019-04-28 17:40:12 UTC
