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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/bbotk_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/bbotk/bbotk_{{ version }}.tar.gz
  sha256: f991fb8efa40cefb36e2fee2dbf78e1651b4ec34b2063fdfed9148fd5cb7a92d

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]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-r6
    - r-checkmate >=2.0.0
    - r-data.table
    - r-lgr
    - r-mlr3misc >=0.5.0
    - r-paradox >=0.3
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-r6
    - r-checkmate >=2.0.0
    - r-data.table
    - r-lgr
    - r-mlr3misc >=0.5.0
    - r-paradox >=0.3

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

about:
  home: https://bbotk.mlr-org.com, https://github.com/mlr-org/bbotk
  license: LGPL-3.0-only
  summary: Provides a common framework for optimization of black-box functions for other packages, e.g. 'mlr3'. It offers various optimization methods e.g.  grid search, random search and generalized simulated annealing.
  license_family: LGPL
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/LGPL-3

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

# Package: bbotk
# Title: Black-Box Optimization Toolkit
# Version: 0.2.2
# Authors@R: c(person(given = "Marc", family = "Becker", role = c("cre", "aut"), email = "marcbecker@posteo.de", comment = c(ORCID = "0000-0002-8115-0400")), person(given = "Jakob", family = "Richter", role = "aut", email = "jakob1richter@gmail.com", comment = c(ORCID = "0000-0003-4481-5554")), person(given = "Michel", family = "Lang", role = "aut", email = "michellang@gmail.com", comment = c(ORCID = "0000-0001-9754-0393")), person(given = "Bernd", family = "Bischl", role = "aut", email = "bernd_bischl@gmx.net", comment = c(ORCID = "0000-0001-6002-6980")), person(given = "Martin", family = "Binder", role = "aut", email = "martin.binder@mail.com"), person(given = "Olaf", family = "Mersmann", role = "ctb", email = "olafm@statistik.tu-dortmund.de"))
# Description: Provides a common framework for optimization of black-box functions for other packages, e.g. 'mlr3'. It offers various optimization methods e.g.  grid search, random search and generalized simulated annealing.
# License: LGPL-3
# URL: https://bbotk.mlr-org.com, https://github.com/mlr-org/bbotk
# BugReports: https://github.com/mlr-org/bbotk/issues
# Depends: R (>= 3.1.0)
# Imports: checkmate (>= 2.0.0), data.table, lgr, methods, mlr3misc (>= 0.5.0), paradox (>= 0.3), R6
# Suggests: adagio, GenSA, knitr, nloptr, rmarkdown, testthat
# VignetteBuilder: knitr
# Encoding: UTF-8
# Language: en-US
# NeedsCompilation: yes
# RoxygenNote: 7.1.1
# Collate: 'Archive.R' 'Objective.R' 'ObjectiveRFun.R' 'ObjectiveRFunDt.R' 'OptimInstance.R' 'OptimInstanceMultiCrit.R' 'OptimInstanceSingleCrit.R' 'mlr_optimizers.R' 'Optimizer.R' 'OptimizerCmaes.R' 'OptimizerDesignPoints.R' 'OptimizerGenSA.R' 'OptimizerGridSearch.R' 'OptimizerNLoptr.R' 'OptimizerRandomSearch.R' 'mlr_terminators.R' 'Terminator.R' 'TerminatorClockTime.R' 'TerminatorCombo.R' 'TerminatorEvals.R' 'TerminatorNone.R' 'TerminatorPerfReached.R' 'TerminatorRunTime.R' 'TerminatorStagnation.R' 'TerminatorStagnationBatch.R' 'assertions.R' 'bbotk_reflections.R' 'bibentries.R' 'helper.R' 'sugar.R' 'zzz.R'
# Packaged: 2020-10-07 09:24:57 UTC; marc
# Author: Marc Becker [cre, aut] (<https://orcid.org/0000-0002-8115-0400>), Jakob Richter [aut] (<https://orcid.org/0000-0003-4481-5554>), Michel Lang [aut] (<https://orcid.org/0000-0001-9754-0393>), Bernd Bischl [aut] (<https://orcid.org/0000-0001-6002-6980>), Martin Binder [aut], Olaf Mersmann [ctb]
# Maintainer: Marc Becker <marcbecker@posteo.de>
# Repository: CRAN
# Date/Publication: 2020-10-08 11:00:03 UTC
