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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/statip_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/statip/statip_{{ version }}.tar.gz
  sha256: 56a81a1882856cd1c5711ba133417b64f09071dda356e74280a0dba0db60d54f

build:
  merge_build_host: True  # [win]
  number: 1
  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]
  host:
    - r-base
    - r-bazar
    - r-clue
    - r-rpart
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-bazar
    - r-clue
    - r-rpart

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

about:
  home: https://github.com/paulponcet/statip
  license: GPL-3
  summary: 'A collection of miscellaneous statistical functions for  probability distributions:
    dbern(), pbern(), qbern(), rbern() for  the Bernoulli distribution, and distr2name(),
    name2distr() for  distribution names;  probability density estimation: densityfun();  most
    frequent value estimation: mfv(), mfv1();  calculation of the Hellinger distance:
    hellinger();  use of classical kernels: kernelfun(), kernel_properties();  univariate
    piecewise-constant regression: picor(). '
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: statip
# Type: Package
# Title: Statistical Functions for Probability Distributions and Regression
# Version: 0.2.0
# Date: 2018-07-31
# Authors@R: c(person("Paul", "Poncet", , "paulponcet@yahoo.fr", role = c("aut", "cre")),  person("The R Core Team", role = c("aut", "cph"),  comment = "C function 'BinDist' copied from package 'stats'"),  person("The R Foundation", role = "cph",  comment = "C function 'BinDist' copied from package 'stats'"),  person("Adrian", "Baddeley", role = "ctb",  comment = "C function 'BinDist' copied from package 'stats'"))
# Description: A collection of miscellaneous statistical functions for  probability distributions: dbern(), pbern(), qbern(), rbern() for  the Bernoulli distribution, and distr2name(), name2distr() for  distribution names;  probability density estimation: densityfun();  most frequent value estimation: mfv(), mfv1();  calculation of the Hellinger distance: hellinger();  use of classical kernels: kernelfun(), kernel_properties();  univariate piecewise-constant regression: picor().
# License: GPL-3
# LazyData: TRUE
# Depends: R (>= 3.1.3)
# Imports: bazar, clue, graphics, rpart, stats
# Suggests: knitr, testthat
# URL: https://github.com/paulponcet/statip
# BugReports: https://github.com/paulponcet/statip/issues
# RoxygenNote: 6.0.1
# NeedsCompilation: yes
# Packaged: 2018-07-31 21:24:25 UTC; YL1101
# Author: Paul Poncet [aut, cre], The R Core Team [aut, cph] (C function 'BinDist' copied from package 'stats'), The R Foundation [cph] (C function 'BinDist' copied from package 'stats'), Adrian Baddeley [ctb] (C function 'BinDist' copied from package 'stats')
# Maintainer: Paul Poncet <paulponcet@yahoo.fr>
# Repository: CRAN
# Date/Publication: 2018-07-31 21:40:03 UTC
