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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/heavy_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/heavy/heavy_{{ version }}.tar.gz
  sha256: 33f3dd78958044012cc7508b9f852484c21de66ae8fee66585d0256e3d426716

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
    - liblapack
    - libblas 
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - liblapack
    - libblas 

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

about:
  home: http://heavy.mat.utfsm.cl
  license: GPL-2.0-or-later
  summary: Functions to perform robust estimation considering heavy-tailed distributions. Currently,
    the package includes routines for linear regression, linear mixed-effect models,
    Grubbs' model, multivariate location and scatter estimation, multivariate regression,
    penalized splines, random variate generation and some support functions.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: heavy
# Version: 0.38.196
# Title: Robust Estimation Using Heavy-Tailed Distributions
# Description: Functions to perform robust estimation considering heavy-tailed distributions. Currently, the package includes routines for linear regression, linear mixed-effect models, Grubbs' model, multivariate location and scatter estimation, multivariate regression, penalized splines, random variate generation and some support functions.
# License: GPL (>= 2)
# LazyLoad: yes
# URL: http://heavy.mat.utfsm.cl
# NeedsCompilation: yes
# Author: Felipe Osorio
# Maintainer: Felipe Osorio <felipe.osorios@usm.cl>
# Packaged: 2019-10-18 16:21:04 UTC; root
# Repository: CRAN
# Date/Publication: 2019-10-20 07:10:02 UTC
