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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/conquer_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/conquer/conquer_{{ version }}.tar.gz
  sha256: 6b93f824697b35ad76a4330c79fb4fe05c97dce130e7c8da2aaa5efdf869f1b0

build:
  merge_build_host: True  # [win]
  number: 0
  skip: true  # [r_base == "3.5.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 }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - _openmp_mutex                # [linux]
    - llvm-openmp                  # [osx]
    - libopenblas
    - r-base
    - r-matrix
    - r-rcpp >=1.0.3
    - r-rcpparmadillo
    - r-matrixstats
  run:
    - _openmp_mutex                # [linux]
    - llvm-openmp                  # [osx]
    - libopenblas
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-matrix
    - r-rcpp >=1.0.3
    - r-rcpparmadillo
    - r-matrixstats

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

about:
  home: https://github.com/XiaoouPan/conquer
  license: GPL-3.0-only
  summary: Fast and accurate convolution-type smoothed quantile regression. Implemented using
    Barzilai-Borwein gradient descent with a Huber regression warm start. Construct
    confidence intervals for regression coefficients using multiplier bootstrap.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: conquer
# Type: Package
# Title: Convolution-Type Smoothed Quantile Regression
# Version: 1.0.1
# Date: 2020-04-11
# Authors@R: c(person("Xuming", "He", email = "xmhe@umich.edu", role = "aut"), person("Xiaoou", "Pan", email = "xip024@ucsd.edu", role = c("aut", "cre")), person("Kean Ming", "Tan", email = "keanming@umich.edu", role = "aut"), person("Wen-Xin", "Zhou", email = "wez243@ucsd.edu", role = "aut"))
# Description: Fast and accurate convolution-type smoothed quantile regression. Implemented using Barzilai-Borwein gradient descent with a Huber regression warm start. Construct confidence intervals for regression coefficients using multiplier bootstrap.
# Depends: R (>= 3.6.0)
# License: GPL-3
# Encoding: UTF-8
# URL: https://github.com/XiaoouPan/conquer
# SystemRequirements: C++11
# Imports: Rcpp (>= 1.0.3), Matrix, matrixStats, stats
# LinkingTo: Rcpp, RcppArmadillo
# RoxygenNote: 7.1.0
# NeedsCompilation: yes
# Packaged: 2020-05-06 05:09:55 UTC; xopan
# Author: Xuming He [aut], Xiaoou Pan [aut, cre], Kean Ming Tan [aut], Wen-Xin Zhou [aut]
# Maintainer: Xiaoou Pan <xip024@ucsd.edu>
# Repository: CRAN
# Date/Publication: 2020-05-06 12:40:09 UTC
