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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/dbarts_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/dbarts/dbarts_{{ version }}.tar.gz
  sha256: 1d75e795812819b7637d38fc909f4d7942bddf359acfb40a7b8e7cd167a5e92a

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}sed               # [win]
    - {{ posix }}grep              # [win]
    - {{ posix }}autoconf
    - {{ posix }}automake          # [not win]
    - {{ posix }}automake-wrapper  # [win]
    - {{ posix }}pkg-config
    - {{ posix }}make
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - liblapack                    # [linux]
    - libblas                      # [linux]
    - libopenblas
    - mkl
    - r-base
  run:
    - liblapack                    # [linux]
    - libblas                      # [linux]
    - libopenblas
    - mkl
    - r-base
    - {{ native }}gcc-libs         # [win]

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

about:
  home: https://github.com/vdorie/dbarts
  license: GPL-2.0-or-later
  summary: Fits Bayesian additive regression trees (BART; Chipman, George, and McCulloch (2010) <doi:10.1214/09-AOAS285>) while allowing the updating of predictors or response so that BART can be incorporated as a conditional model in a Gibbs/Metropolis-Hastings sampler. Also serves as a drop-in replacement for package 'BayesTree'.
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: dbarts
# Version: 0.9-18
# Date: 2020-06-10
# Title: Discrete Bayesian Additive Regression Trees Sampler
# Authors@R: c( person("Vincent", "Dorie", role = c("aut", "cre"), email = "vdorie@gmail.com", comment = c(ORCID = "0000-0002-9576-3064")), person("Hugh", "Chipman", role = "aut", email = "hugh.chipman@gmail.com"), person("Robert", "McCulloch", role = "aut", email = "robert.mcculloch1@gmail.com"), person("Armon", "Dadgar", role = "ctb", comment = "adaptive radix tree"), person("R Core Team", role = "ctb", comment = "basis of RNG"), person("Guido U", "Draheim", role = "ctb", comment = "ax_check_compile_flag.m4"), person("Maarten", "Bosmans", role = "ctb", comment = "ax_check_compile_flag.m4"), person("Christophe", "Tournayre", role = "ctb", comment = "ax_compiler_ext.m4, ax_ext.m4"), person("Michael", "Petch", role = "ctb", comment = "ax_compiler_ext.m4, ax_ext.m4, ax_gcc_x86_avx_xgetbv.m4, ax_gcc_x86_cpuid.m4"), person("Rafael", "de Lucena Valle", role = "ctb", comment = "ax_compiler_ext.m4, ax_ext.m4"), person("Steven G.", "Johnson", role = "ctb", comment = c("ax_compiler_vendor.m4, ax_gcc_x86_cpuid.m4, ax_pthread.m4", ORCID = "0000-0001-7327-4967")), person("Matteo", "Frigo", role = "ctb", comment = "ax_compiler_vendor.m4, ax_gcc_x86_cpuid.m4"), person("John", "Zaitseff", role = "ctb", comment = "ax_compiler_vendor.m4"), person("Todd", "Veldhuizen", role = "ctb", comment = "ax_cxx_namespace_std.m4"), person("Luc", "Maisonobe", role = "ctb", comment = "ax_cxx_namespace_std.m4"), person("Scott", "Pakin", role = "ctb", comment = c("ax_func_posix_memalign.m4", ORCID = "0000-0002-5220-1985")), person("Daniel", "Richard G.", role = "ctb", comment = "ax_pthread.m4"))
# Depends: R (>= 3.1-0)
# Imports: stats, methods, graphics, parallel
# Suggests: testthat (>= 0.9-0)
# Description: Fits Bayesian additive regression trees (BART; Chipman, George, and McCulloch (2010) <doi:10.1214/09-AOAS285>) while allowing the updating of predictors or response so that BART can be incorporated as a conditional model in a Gibbs/Metropolis-Hastings sampler. Also serves as a drop-in replacement for package 'BayesTree'.
# License: GPL (>= 2)
# NeedsCompilation: yes
# Biarch: yes
# URL: https://github.com/vdorie/dbarts
# BugReports: https://github.com/vdorie/dbarts/issues
# Packaged: 2020-06-11 20:37:36 UTC; vdorie
# Author: Vincent Dorie [aut, cre] (<https://orcid.org/0000-0002-9576-3064>), Hugh Chipman [aut], Robert McCulloch [aut], Armon Dadgar [ctb] (adaptive radix tree), R Core Team [ctb] (basis of RNG), Guido U Draheim [ctb] (ax_check_compile_flag.m4), Maarten Bosmans [ctb] (ax_check_compile_flag.m4), Christophe Tournayre [ctb] (ax_compiler_ext.m4, ax_ext.m4), Michael Petch [ctb] (ax_compiler_ext.m4, ax_ext.m4, ax_gcc_x86_avx_xgetbv.m4, ax_gcc_x86_cpuid.m4), Rafael de Lucena Valle [ctb] (ax_compiler_ext.m4, ax_ext.m4), Steven G. Johnson [ctb] (ax_compiler_vendor.m4, ax_gcc_x86_cpuid.m4, ax_pthread.m4, <https://orcid.org/0000-0001-7327-4967>), Matteo Frigo [ctb] (ax_compiler_vendor.m4, ax_gcc_x86_cpuid.m4), John Zaitseff [ctb] (ax_compiler_vendor.m4), Todd Veldhuizen [ctb] (ax_cxx_namespace_std.m4), Luc Maisonobe [ctb] (ax_cxx_namespace_std.m4), Scott Pakin [ctb] (ax_func_posix_memalign.m4, <https://orcid.org/0000-0002-5220-1985>), Daniel Richard G. [ctb] (ax_pthread.m4)
# Maintainer: Vincent Dorie <vdorie@gmail.com>
# Repository: CRAN
# Date/Publication: 2020-06-12 05:40:02 UTC
