{% set version = '6.0-94' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/caret_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/caret/caret_{{ version }}.tar.gz
  sha256: 2715e83ca260bb739cd926a55b0d2da1e3f6308b17b56862466e738d930d29a8

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: BradleyTerry2, covr, Cubist, dplyr, earth (>= 2.2-3), ellipse, fastICA, gam (>= 1.15), ipred, kernlab, klaR, knitr, MASS, Matrix, mda, mgcv, mlbench, MLmetrics, nnet, pamr, party (>= 0.9-99992), pls, proxy, randomForest, RANN, rmarkdown, rpart, spls, subselect, superpc, testthat (>= 0.9.1), themis (>= 0.1.3)
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-modelmetrics >=1.2.2.2
    - r-e1071
    - r-foreach
    - r-ggplot2
    - r-lattice >=0.20
    - r-nlme
    - r-proc
    - r-plyr
    - r-recipes >=0.1.10
    - r-reshape2
    - r-withr >=2.0.0

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-modelmetrics >=1.2.2.2
    - r-e1071
    - r-foreach
    - r-ggplot2
    - r-lattice >=0.20
    - r-nlme
    - r-proc
    - r-plyr
    - r-recipes >=0.1.10
    - r-reshape2
    - r-withr >=2.0.0

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('caret')"           # [not win]
    - "\"%R%\" -e \"library('caret')\""  # [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/topepo/caret/
  license: GPL-2
  summary: Misc functions for training and plotting classification and regression models.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# The original CRAN metadata for this package was:

# Package: caret
# Title: Classification and Regression Training
# Version: 6.0-94
# Authors@R: c(person(given = "Max", family = "Kuhn", role = c("aut", "cre"), email = "mxkuhn@gmail.com", comment = c(ORCID = "0000-0003-2402-136X")), person(given = "Jed", family = "Wing", role = "ctb"), person(given = "Steve", family = "Weston", role = "ctb"), person(given = "Andre", family = "Williams", role = "ctb"), person(given = "Chris", family = "Keefer", role = "ctb"), person(given = "Allan", family = "Engelhardt", role = "ctb"), person(given = "Tony", family = "Cooper", role = "ctb"), person(given = "Zachary", family = "Mayer", role = "ctb"), person(given = "Brenton", family = "Kenkel", role = "ctb"), person(given = "R Core Team", role = "ctb"), person(given = "Michael", family = "Benesty", role = "ctb"), person(given = "Reynald", family = "Lescarbeau", role = "ctb"), person(given = "Andrew", family = "Ziem", role = "ctb"), person(given = "Luca", family = "Scrucca", role = "ctb"), person(given = "Yuan", family = "Tang", role = "ctb"), person(given = "Can", family = "Candan", role = "ctb"), person(given = "Tyler", family = "Hunt", role = "ctb"))
# Description: Misc functions for training and plotting classification and regression models.
# License: GPL (>= 2)
# URL: https://github.com/topepo/caret/
# BugReports: https://github.com/topepo/caret/issues
# Depends: ggplot2, lattice (>= 0.20), R (>= 3.2.0)
# Imports: e1071, foreach, grDevices, methods, ModelMetrics (>= 1.2.2.2), nlme, plyr, pROC, recipes (>= 0.1.10), reshape2, stats, stats4, utils, withr (>= 2.0.0)
# Suggests: BradleyTerry2, covr, Cubist, dplyr, earth (>= 2.2-3), ellipse, fastICA, gam (>= 1.15), ipred, kernlab, klaR, knitr, MASS, Matrix, mda, mgcv, mlbench, MLmetrics, nnet, pamr, party (>= 0.9-99992), pls, proxy, randomForest, RANN, rmarkdown, rpart, spls, subselect, superpc, testthat (>= 0.9.1), themis (>= 0.1.3)
# VignetteBuilder: knitr
# Encoding: UTF-8
# RoxygenNote: 7.2.3
# NeedsCompilation: yes
# Packaged: 2023-03-21 18:04:50 UTC; max
# Author: Max Kuhn [aut, cre] (<https://orcid.org/0000-0003-2402-136X>), Jed Wing [ctb], Steve Weston [ctb], Andre Williams [ctb], Chris Keefer [ctb], Allan Engelhardt [ctb], Tony Cooper [ctb], Zachary Mayer [ctb], Brenton Kenkel [ctb], R Core Team [ctb], Michael Benesty [ctb], Reynald Lescarbeau [ctb], Andrew Ziem [ctb], Luca Scrucca [ctb], Yuan Tang [ctb], Can Candan [ctb], Tyler Hunt [ctb]
# Maintainer: Max Kuhn <mxkuhn@gmail.com>
# Repository: CRAN
# Date/Publication: 2023-03-21 19:30:02 UTC

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