{% set version = '0.6-22' %}

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

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

source:
  fn: miscTools_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/miscTools_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/miscTools/miscTools_{{ version }}.tar.gz
  sha256: d00bb2602d1d31e9e1e13c8868cfe69d432bbe15afa8d4bbb83b3c9e0b9dcfea

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: http://www.micEcon.org
  license: GPL (>= 2)
  summary: Miscellaneous small tools and utilities. Many of them facilitate the work with matrices,
    e.g. inserting rows or columns, creating symmetric matrices, or checking for semidefiniteness.
    Other tools facilitate the work with regression models, e.g. extracting the standard
    errors, obtaining the number of (estimated) parameters, or calculating R-squared
    values.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
