{% set version = '2.3-4' %}

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

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

source:
  fn: sandwich_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/sandwich_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/sandwich/sandwich_{{ version }}.tar.gz
  sha256: 2052f7e3d19a05c372f422c5480f1058a4107e420cd038a9bd7240c4f0746d4d

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

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

requirements:
  build:
    - r-base
    - r-zoo

  run:
    - r-base
    - r-zoo

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

about:
  home: https://CRAN.R-project.org/package=sandwich
  license: GPL-2 | GPL-3
  summary: Model-robust standard error estimators for cross-sectional, time series, and longitudinal
    data.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
